Syntax error [was: Installed modules list?]
Jeremy Hylton
jeremy at digicool.com
Fri Apr 20 12:24:08 EDT 2001
Never mind my previous message. It's pretty clear from the grammar.
stmt: simple_stmt | compound_stmt
simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE
small_stmt: expr_stmt | print_stmt | del_stmt | pass_stmt | flow_stmt | import_stmt | global_stmt | exec_stmt | assert_stmt
compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef
You can only join simple statements with a semicolon. None of the
statements that use colons between parts are simple statements.
Jeremy
More information about the Python-list
mailing list