compile() and comments

Ed Leafe ed at leafe.com
Mon Oct 13 10:27:33 EDT 2008


On Oct 13, 2008, at 8:35 AM, Fuzzyman wrote:

> It is certainly an odd restriction, but the docs for compile [1] do
> explicitly state that the input must be newline terminated.


	Understood; what I found odd was that if the last non-newline- 
terminated statement was *not* a comment, no error was thrown.


-- Ed Leafe






More information about the Python-list mailing list