compile() and comments

Steve Holden steve at holdenweb.com
Tue Oct 14 13:09:28 EDT 2008


Ed Leafe wrote:
> 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.
> 
What if the last line is indented?

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/




More information about the Python-list mailing list