|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/interactive.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/top-level.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/programs.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/genindex.html| ]]
|
Next: 8.3 Interactive input Up: 8. Top-level components Previous: 8.1 Complete Python programs
8.2 File input
All input read from non-interactive files has the same form:
file_input: (NEWLINE | statement)*
This syntax is used in the following situations:
- when parsing a complete Python program (from a file or from a string);
- when parsing a module;
- when parsing a string passed to the exec statement;
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/interactive.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/top-level.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/programs.html| ]]
|
Python Reference Manual
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/contents.html| ]]
|
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/16/ref/genindex.html| ]]
|
Next: 8.3 Interactive input Up: 8. Top-level components Previous: 8.1 Complete Python programs