I do not think we will ever have auto-indent at the prompt, that is for IPython and the like.
This commit is contained in:
parent
7386662699
commit
1532c8f9a7
|
@ -593,13 +593,13 @@ This example introduces several new features.
|
||||||
and ``!=`` (not equal to).
|
and ``!=`` (not equal to).
|
||||||
|
|
||||||
* The *body* of the loop is *indented*: indentation is Python's way of grouping
|
* The *body* of the loop is *indented*: indentation is Python's way of grouping
|
||||||
statements. Python does not (yet!) provide an intelligent input line editing
|
statements. At the interactive prompt, you have to type a tab or space(s) for
|
||||||
facility, so you have to type a tab or space(s) for each indented line. In
|
each indented line. In practice you will prepare more complicated input
|
||||||
practice you will prepare more complicated input for Python with a text editor;
|
for Python with a text editor; all decent text editors have an auto-indent
|
||||||
most text editors have an auto-indent facility. When a compound statement is
|
facility. When a compound statement is entered interactively, it must be
|
||||||
entered interactively, it must be followed by a blank line to indicate
|
followed by a blank line to indicate completion (since the parser cannot
|
||||||
completion (since the parser cannot guess when you have typed the last line).
|
guess when you have typed the last line). Note that each line within a basic
|
||||||
Note that each line within a basic block must be indented by the same amount.
|
block must be indented by the same amount.
|
||||||
|
|
||||||
* The :func:`print` function writes the value of the expression(s) it is
|
* The :func:`print` function writes the value of the expression(s) it is
|
||||||
given. It differs from just writing the expression you want to write (as we did
|
given. It differs from just writing the expression you want to write (as we did
|
||||||
|
|
Loading…
Reference in New Issue