<p>I agree that it should and it doesn't. I also recall that not having empty lines between function/class definitions can cause indentation errors when pasting to the console on my windows machine.</p>
<p>--Yuval</p>
<div class="gmail_quote">On Sep 23, 2011 7:26 PM, "anatoly techtonik" <<a href="mailto:techtonik@gmail.com">techtonik@gmail.com</a>> wrote:<br type="attribution">> Currently if you work in console and define a function and then<br>
> immediately call it - it will fail with SyntaxError.<br>> For example, copy paste this completely valid Python script into console:<br>> <br>> def some():<br>> print "XXX"<br>> some()<br>> <br>
> There is an issue for that that was just closed by Eric. However, I'd<br>> like to know if there are people here that agree that if you paste a<br>> valid Python script into console - it should work without changes.<br>
> --<br>> anatoly t.<br>> _______________________________________________<br>> Python-Dev mailing list<br>> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>> <a href="http://mail.python.org/mailman/listinfo/python-dev">http://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/ubershmekel%40gmail.com">http://mail.python.org/mailman/options/python-dev/ubershmekel%40gmail.com</a><br></div>