(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/file-input.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/top-level.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/expression-input.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/genindex.html| ]]
|
Previous: 8.2 File input Up: 8. Top-level components Next: 8.4 Expression input
8.3 Interactive input
Input in interactive mode is parsed using the following grammar:
interactive_input: [stmt_list] NEWLINE | compound_stmt NEWLINE
Note that a (top-level) compound statement must be followed by a blank line in interactive mode; this is needed to help the parser detect the end of the input.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/file-input.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/top-level.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/expression-input.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/ref/genindex.html| ]]
|
Previous: 8.2 File input Up: 8. Top-level components Next: 8.4 Expression input
See About this document... for information on suggesting changes.