[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray added the comment: I thought I tested this on 2.6, but I forgot that my system has now made 2.7 the default python. And now that you mention it, I vaguely remember this feature getting added. Sorry for the noise. -- ___ Python tra

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/10/26 R. David Murray : > > R. David Murray added the comment: > > The fix is not something that can be backported to 3.1?  (This is a > regression relative to 2.x). No, it's not. The fix was a bit of "feature", so it was in 2.7 and py3k. --

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray added the comment: The fix is not something that can be backported to 3.1? (This is a regression relative to 2.x). -- ___ Python tracker ___ __

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's because it's fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread R. David Murray
R. David Murray added the comment: I can reproduce this on 3.1 but not py3k trunk. -- nosy: +benjamin.peterson, r.david.murray ___ Python tracker ___ ___

[issue10204] exec string fails with trailing whitespace

2010-10-26 Thread Eric Promislow
New submission from Eric Promislow : The following code throws an exception in Python 3.1 (and 3.2 alpha), but runs with 2.x: >>> exec('if True:\nprint("Hello")\n\n') Traceback (most recent call last): File "", line 1, in File "", line 4 SyntaxError: invalid syntax >>> This is