ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Language Reference
8. Top-level components
8.1 Complete Python programs
8.2 File input
8.3 Interactive input
8.4 Expression input

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Language Reference >> 8. Top-level components
ActivePython 2.4 documentation


8.4 Expression input

There are two forms of expression input. Both ignore leading whitespace. The string argument to eval() must have the following form:

Download entire grammar as text.

The input line read by input() must have the following form:

Download entire grammar as text.

Note: to read `raw' input line without interpretation, you can use the built-in function raw_input() or the readline() method of file objects.

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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved