Website hosting service by

 Back to Index

8.2 File input

All input read from non-interactive files has the same form:


file_input  ::=  (NEWLINE | statement)*
Download entire grammar as text.

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;





2002-2004 Website Hosting Service


Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to offers cheap domain registration, domain name transfer and domain search services   Cheap domain name - Cheap domain name registration service including free domain hosting services  

Domain registration : Buy domain name or register domain name from $5.95/year only