On Oct 12, 2008, at 6:45 PM, Paul McNett wrote:

> I vaguely think I remember this being documented somewhere as "by
> design". Plus historically it's a good idea for there to be a  
> newline at
> the end of the file. Not defending the behavior, though.


        The problem I see is that if the last line is not a comment, and you  
strip() the code, it compiles fine. Also, if the code is in a script  
file and you import it, it runs fine. It's only when calling the  
compile() function that it happens.

        My proposed fix was to add a newline, which allows it to compile  
correctly. I just wanted to make sure that others saw the same  
behavior first.

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to