[Python-checkins] python/dist/src/Doc/ref ref2.tex,1.56,1.57

fdrake@users.sourceforge.net fdrake at users.sourceforge.net
Wed May 25 07:29:19 CEST 2005

Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12418/ref

Modified Files:
Log Message:
update documentation on what constitutes a line in a source file
(closes SF bug #1167922)

Index: ref2.tex
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref2.tex,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- ref2.tex	10 Nov 2004 16:51:17 -0000	1.56
+++ ref2.tex	25 May 2005 05:29:17 -0000	1.57
@@ -54,11 +54,18 @@
 \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)
+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

More information about the Python-checkins mailing list