Meador Inge <mead...@gmail.com> added the comment:

On Tue, Jan 17, 2012 at 10:56 AM, Éric Araujo <rep...@bugs.python.org> wrote:

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

Because a single statement can be multiple lines (as is the case for
compound statements).  Look at the grammar for a single input
statement
(interactive_input):
http://docs.python.org/dev/reference/toplevel_components.html#interactive-input.
 This issue is really about multiple statements
and not multiple lines.

----------

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

Reply via email to