Is it possible to test methods inside interactive python and store empty lines in them?
def f1(): import random import time time.sleep(random.randint(1, 4))
This gives a known error.
IndentationError: unexpected indent
So yes, the workaround is to delete all empty lines inside the functions. I would like to know if this is really necessary to work in interactive mode / REPL.
thanks
javadba
source share