Nick Coghlan wrote:
Disallowing local namespaces for statement lists would suggest something like this:

  statement ::= (simple_stmt
                  (NEWLINE | ";" stmt_list NEWLINE | local_namespace)
                 ) |
                (compound_stmt [local_namespace])
  local_namespace ::= "with" ":" suite


Corrected version of the above to avoid an unintended syntax change:

  statement ::= (simple_stmt
                  (NEWLINE | ";" [stmt_list] NEWLINE | local_namespace)
                 ) |
                (compound_stmt [local_namespace])
  local_namespace ::= "with" ":" suite

(The original version incorrectly prohibited a trailing semi-colon for a single statement)

Cheers,
Nick.

--
Nick Coghlan   |   [EMAIL PROTECTED]   |   Brisbane, Australia
---------------------------------------------------------------
            http://boredomandlaziness.skystorm.net
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to