Message5394
It's not just 1 line versus two. For example, the first line of what you posted
("print ...") is a statement whereas the second line is an expression.
Python is not set up to behave as you wish - there's a separate interactive
grammar from the "batch" grammar, which requires extra returns, etc. I suggest
if you have a third-party script to define an entry point (such as a function
name) you can call after evaluating the script in its entirety, then the return
value will be explicit with "return". |
|
Date |
User |
Action |
Args |
2009-12-22 16:17:07 | nriley | set | messageid: <1261498627.36.0.336513046467.issue1486@psf.upfronthosting.co.za> |
2009-12-22 16:17:07 | nriley | set | recipients:
+ nriley, bioform |
2009-12-22 16:17:07 | nriley | link | issue1486 messages |
2009-12-22 16:17:07 | nriley | create | |
|