]> granicus.if.org Git - python/commitdiff
Revised description of blank line handling for the interpreter, based
authorFred Drake <fdrake@acm.org>
Mon, 22 Feb 1999 14:32:18 +0000 (14:32 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 22 Feb 1999 14:32:18 +0000 (14:32 +0000)
on a comment from /F.

Doc/ref/ref2.tex

index c96031ad72e56c50b31921bf7ad118880fa4463c..246bc32771bcd8071bbfba58b4cdb5ac0adeb50f 100644 (file)
@@ -89,6 +89,7 @@ for string literals (i.e., tokens other than string literals cannot be
 split across physical lines using a backslash).  A backslash is
 illegal elsewhere on a line outside a string literal.
 
+
 \subsection{Implicit line joining\label{implicit-joining}}
 
 Expressions in parentheses, square brackets or curly braces can be
@@ -108,14 +109,17 @@ allowed.  There is no NEWLINE token between implicit continuation
 lines.  Implicitly continued lines can also occur within triple-quoted
 strings (see below); in that case they cannot carry comments.
 
-\subsection{Blank lines\label{blank-lines}}
 
-A logical line that contains only spaces, tabs, formfeeds and possibly a
-comment, is ignored (i.e., no NEWLINE token is generated), except that
-during interactive input of statements, an entirely blank logical line
-(i.e. one containing not even whitespace or a comment)
-terminates a multi-line statement.
-\index{blank line}
+\subsection{Blank lines \index{blank line}\label{blank-lines}}
+
+A logical line that contains only spaces, tabs, formfeeds and possibly
+a comment, is ignored (i.e., no NEWLINE token is generated).  During
+interactive input of statements, handling of a blank line may differ
+depending on the implementation of the read-eval-print loop.  In the
+standard implementation, an entirely blank logical line (i.e.\ one
+containing not even whitespace or a comment) terminates a multi-line
+statement.
+
 
 \subsection{Indentation\label{indentation}}