Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
db22958f
Commit
db22958f
authored
May 25, 2005
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update documentation on what constitutes a line in a source file
(closes SF bug #1167922)
parent
bbf12ba7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
Doc/ref/ref2.tex
Doc/ref/ref2.tex
+12
-5
No files found.
Doc/ref/ref2.tex
View file @
db22958f
...
...
@@ -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
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment