Message94956
| Author |
benjamin.peterson |
| Recipients |
benjamin.peterson, flashk |
| Date |
2009年11月06日.01:25:46 |
| SpamBayes Score |
2.3610296e-08 |
| Marked as misclassified |
No |
| Message-id |
<1afaf6160911051725x7209c303r82d1b13eba87354c@mail.gmail.com> |
| In-reply-to |
<1257470115.11.0.523570296329.issue7268@psf.upfronthosting.co.za> |
| Content |
2009年11月5日 flashk <report@bugs.python.org>:
>
> flashk <flashk@gmail.com> added the comment:
>
> Ok, I converted test.py to use Unix style newlines and still get the
> syntax error on both 2.6 and 3.1. I'm confused as to why execfile works on
> the file but reading the contents and passing it to exec behaves
> differently under 2.6. Sorry if I'm just being dense.
open in 2.x does not translate newlines by default. It does so in 3.x. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年11月06日 01:25:47 | benjamin.peterson | set | recipients:
+ benjamin.peterson, flashk |
| 2009年11月06日 01:25:46 | benjamin.peterson | link | issue7268 messages |
| 2009年11月06日 01:25:46 | benjamin.peterson | create |
|