This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author meador.inge
Recipients Devin Jeanpierre, benjamin.peterson, eric.araujo, meador.inge, terry.reedy
Date 2012-01-17.19:20:33
SpamBayes Score 4.5157276e-06
Marked as misclassified No
Message-id <CAK1QoorsqA8QAmVy4ea=WSb3dPAMMztW9229xaPcjYf1tXXRdQ@mail.gmail.com>
In-reply-to <1326819411.67.0.187811015451.issue12705@psf.upfronthosting.co.za>
Content
On Tue, Jan 17, 2012 at 10:56 AM, Éric Araujo <report@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.
History
Date User Action Args
2012-01-17 19:20:34meador.ingesetrecipients: + meador.inge, terry.reedy, benjamin.peterson, Devin Jeanpierre, eric.araujo
2012-01-17 19:20:33meador.ingelinkissue12705 messages
2012-01-17 19:20:33meador.ingecreate