homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flashk
Recipients benjamin.peterson, flashk
Date 2009年11月06日.03:13:08
SpamBayes Score 1.1442674e-05
Marked as misclassified No
Message-id <1257477190.09.0.938700341502.issue7268@psf.upfronthosting.co.za>
In-reply-to
Content
I noticed that calling "exec('\t')" raises a SyntaxError, so maybe this is 
the root of the problem. I manually added a newline character to the end 
of the file contents and it fixes the issue for me:
exec(compile(open('test.py').read()+'\n', 'test.py', 'exec'))
So maybe the 2to3 script should automatically do this in order to be 
compatible with previous execfile behavior? Or is this a problem with 
exec?
History
Date User Action Args
2009年11月06日 03:13:10flashksetrecipients: + flashk, benjamin.peterson
2009年11月06日 03:13:10flashksetmessageid: <1257477190.09.0.938700341502.issue7268@psf.upfronthosting.co.za>
2009年11月06日 03:13:08flashklinkissue7268 messages
2009年11月06日 03:13:08flashkcreate

AltStyle によって変換されたページ (->オリジナル) /