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

From ZCubes Wiki
Revision as of 20:09, 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/20/ref/programs.html|[[Image:yurttas_PL_...")
(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;

See About this document... for information on suggesting changes.