New submission from Eric Promislow <er...@activestate.com>:

The following code throws an exception in Python 3.1 (and 3.2 alpha),
but runs with 2.x:

>>> exec('if True:\n    print("Hello")\n    \n    ')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 4

SyntaxError: invalid syntax
>>>

This is with Python 3.1.1.2, but I can repro it with a 3.2 alpha
as well.

Ref Komodo bug http://bugs.activestate.com/show_bug.cgi?id=88566

----------
components: Interpreter Core
messages: 119640
nosy: ericp
priority: normal
severity: normal
status: open
title: exec string fails with trailing whitespace
versions: Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10204>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to