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

fdrake@users.sourceforge.net fdrake at users.sourceforge.net
Wed May 25 07:30:38 CEST 2005


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

Modified Files:
      Tag: release24-maint
	ref2.tex 
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.56.2.1
diff -u -d -r1.56 -r1.56.2.1
--- ref2.tex	10 Nov 2004 16:51:17 -0000	1.56
+++ ref2.tex	25 May 2005 05:30:36 -0000	1.56.2.1
@@ -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)
-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}}



More information about the Python-checkins mailing list