[issue12705] Make compile('1\n2\n', '', 'single') raise an exception instead of silently truncating?

Éric Araujo report at bugs.python.org
Tue Jan 17 17:56:51 CET 2012


Éric Araujo <merwok at netwok.org> added the comment:

I don’t understand why some two-liners are allowed (like "class X:\n pass").  The doc says “a single interactive statement”.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12705>
_______________________________________


More information about the Python-bugs-list mailing list