summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-05-25 05:29:17 (GMT)
committerFred Drake <fdrake@acm.org>2005-05-25 05:29:17 (GMT)
commitdb22958f073cab14ee2510991cd14df674681f5b (patch)
treef9c4881acadf92a112b7c741ab8e36cb47b69800 /Doc/ref
parentbbf12ba7b20059324cf10e26aa98bc0fa405ad3d (diff)
downloadcpython-db22958f073cab14ee2510991cd14df674681f5b.zip
cpython-db22958f073cab14ee2510991cd14df674681f5b.tar.gz
cpython-db22958f073cab14ee2510991cd14df674681f5b.tar.bz2
update documentation on what constitutes a line in a source file
(closes SF bug #1167922)
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref2.tex17
1 files changed, 12 insertions, 5 deletions
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex
index b8ddacb..68f6570 100644
--- a/Doc/ref/ref2.tex
+++ b/Doc/ref/ref2.tex
@@ -54,11 +54,18 @@ by following the explicit or implicit \emph{line joining} rules.
\subsection{Physical lines\label{physical}}
-A physical line ends in whatever the current platform's convention is
-for terminating lines. On \UNIX, this is the \ASCII{} LF (linefeed)
-character. On Windows, it is the \ASCII{} sequence CR LF (return
-followed by linefeed). On Macintosh, it is the \ASCII{} CR (return)
-character.
+A physical line is a sequence of characters terminated by an end-of-line
+sequence. In source files, any of the standard platform line
+termination sequences can be used - the \UNIX form using \ASCII{} LF
+(linefeed), the Windows form using the \ASCII{} sequence CR LF (return
+followed by linefeed), or the Macintosh form using the \ASCII{} CR
+(return) character. All of these forms can be used equally, regardless
+of platform.
+
+When embedding Python, source code strings should be passed to Python
+APIs using the standard C conventions for newline characters (the
+\code{\e n} character, representing \ASCII{} LF, is the line
+terminator).
\subsection{Comments\label{comments}}