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
0aa17ee6
Commit
0aa17ee6
authored
Jun 09, 2018
by
Ammar Askar
Committed by
Terry Jan Reedy
Jun 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-33766: Document that end of file or string is a newline (GH-7383)
parent
7e0d882a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Doc/reference/lexical_analysis.rst
Doc/reference/lexical_analysis.rst
+6
-5
No files found.
Doc/reference/lexical_analysis.rst
View file @
0aa17ee6
...
@@ -47,11 +47,12 @@ Physical lines
...
@@ -47,11 +47,12 @@ Physical lines
--------------
--------------
A physical line is a sequence of characters terminated by an end-of-line
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
sequence. In source files and strings, any of the standard platform line
sequences can be used - the Unix form using ASCII LF (linefeed), the Windows
termination sequences can be used - the Unix form using ASCII LF (linefeed),
form using the ASCII sequence CR LF (return followed by linefeed), or the old
the Windows form using the ASCII sequence CR LF (return followed by linefeed),
Macintosh form using the ASCII CR (return) character. All of these forms can be
or the old Macintosh form using the ASCII CR (return) character. All of these
used equally, regardless of platform.
forms can be used equally, regardless of platform. The end of input also serves
as an implicit terminator for the final physical line.
When embedding Python, source code strings should be passed to Python APIs using
When embedding Python, source code strings should be passed to Python APIs using
the standard C conventions for newline characters (the ``\n`` character,
the standard C conventions for newline characters (the ``\n`` character,
...
...
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