GNU Info

Info Node: (python2.1-ref.info)Interactive input

(python2.1-ref.info)Interactive input


Next: Expression input Prev: File input Up: Top-level components
Enter node , (file) or (file)node

Interactive input
=================

Input in interactive mode is parsed using the following grammar:

     interactive_input: [stmt_list] NEWLINE | compound_stmt NEWLINE

Note that a (top-level) compound statement must be followed by a blank
line in interactive mode; this is needed to help the parser detect the
end of the input.


automatically generated by info2www version 1.2.2.9