Yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/file-input.html

From ZCubes Wiki
Revision as of 18:48, 7 November 2013 by MassBot1 (talk | contribs) (Created page with "<div class="navigation"> {| width="100%" cellspacing="2" align="center" | yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/interactive.html|[[Image:yurttas...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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;

Send comments on this document to python-docs@python.org.