Yurttas/PL/SL/python/docs/core-python-programming/doc/152/ref/expression-input.html

Revision as of 18:48, 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/152/ref/genindex.html|[[Image:yurttas_PL...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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:

eval_input:     expression_list NEWLINE*

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

input_input:    expression_list NEWLINE

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


Send comments on this document to python-docs@python.org.