Message151481
| 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. |
|