Message151694
$ ./python
Python 3.3.0a0 (default:50a4af2ca654+, Jan 20 2012, 10:59:48)
[GCC 4.5.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> s="""x=5 # comment
... x=6
... """
>>> compile(s, "<blah>", "single")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<blah>", line 1
x=5 # comment
^
SyntaxError: multiple statements found while compiling a single statement |
|
Date |
User |
Action |
Args |
2012-01-20 16:00:44 | benjamin.peterson | set | recipients:
+ benjamin.peterson, python-dev, Jim.Jewett |
2012-01-20 16:00:44 | benjamin.peterson | set | messageid: <1327075244.22.0.0379446839937.issue13832@psf.upfronthosting.co.za> |
2012-01-20 16:00:40 | benjamin.peterson | link | issue13832 messages |
2012-01-20 16:00:40 | benjamin.peterson | create | |
|