On Fri, 20 Apr 2001, Jeremy Hylton wrote: > 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. Is there any way to work around this for the purpose of simple unix scripts using python -c, then? Other than putting the python in a separate file, of course. John
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4