Message5394

Author nriley
Recipients bioform, nriley
Date 2009-12-22.16:17:07
SpamBayes Score 1.0074156e-06
Marked as misclassified No
Message-id <1261498627.36.0.336513046467.issue1486@psf.upfronthosting.co.za>
In-reply-to
Content
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".
History
Date User Action Args
2009-12-22 16:17:07nrileysetmessageid: <1261498627.36.0.336513046467.issue1486@psf.upfronthosting.co.za>
2009-12-22 16:17:07nrileysetrecipients: + nriley, bioform
2009-12-22 16:17:07nrileylinkissue1486 messages
2009-12-22 16:17:07nrileycreate