Message94964
| 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:10 | flashk | set | recipients:
+ flashk, benjamin.peterson |
| 2009年11月06日 03:13:10 | flashk | set | messageid: <1257477190.09.0.938700341502.issue7268@psf.upfronthosting.co.za> |
| 2009年11月06日 03:13:08 | flashk | link | issue7268 messages |
| 2009年11月06日 03:13:08 | flashk | create |
|