How to configure interactive python to allow blank lines inside methods
<p>Is it possible to test methods inside interactive python and retain blank lines within them?</p>

<pre><code>def f1():
  import random
  import time

  time.sleep(random.randint(1, 4))
</code></pre>

<p>This gives the familiar error</p>

<pre><code>IndentationError: unexpected indent
</code></pre>

<p>So, yes a workaround is to remove all blank lines inside functions. I'd like to know if that were truly mandatory to be able to run in interactive mode/REPL.</p>

<p>thanks</p>
