[Python-Dev] Re: PEP 244 syntax
Skip Montanaro
skip@pobox.com (Skip Montanaro)
Mon, 16 Jul 2001 16:59:50 -0500
>> I'd also suggest to remove the optional ';' since this is not confrom
>> with the rest of Python....
Martin> Sure it is; disallowing the semicolon would be not conform:
Martin> simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
Martin> You can have a semicolon after each small_stmt
But it doesn't appear that PEP 244 allows multiple directives per line:
A directive_statement is a statement of the form
directive_statement: 'directive' NAME [atom] [';'] NEWLINE
If you decide to allow it, then the semicolon makes sense, but not
otherwise.
Skip