Python Reference Manual
Previous: Up: 8. Top-level components Next:


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.


Python Reference Manual
Previous: Up: 8. Top-level components Next:

Release 2.5, documentation updated on 19th September, 2006.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /