(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/expression-input.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/top-level.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/file-input.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/genindex.html| ]]
|
Next: 8.4 Expression input Up: 8. Top-level components Previous: 8.2 File 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/152/ref/expression-input.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/top-level.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/file-input.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/genindex.html| ]]
|
Next: 8.4 Expression input Up: 8. Top-level components Previous: 8.2 File input
Send comments on this document to python-docs@python.org.