DAGDA SEARCH | Back to results | Support

8.4 Expression input

Source: https://docs.python.org/2.0/ref/expression-input.html

Previous Page Up One Level Next Page Python Reference Manual Contents Index
Previous: 8.3 Interactive input Up: 8. Top-level components Next: A. History and License


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.


Previous Page Up One Level Next Page Python Reference Manual Contents Index
Previous: 8.3 Interactive input Up: 8. Top-level components Next: A. History and License


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