GNU Info

Info Node: (python2.1-ref.info)File input

(python2.1-ref.info)File input


Next: Interactive input Prev: Complete Python programs Up: Top-level components
Enter node , (file) or (file)node

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;



automatically generated by info2www version 1.2.2.9