[Python-checkins] cpython (2.7): Turn last automatic footnote in this file into a manually-numbered one
eric.araujo
python-checkins at python.org
Fri Aug 19 14:28:11 CEST 2011
http://hg.python.org/cpython/rev/02ceeae05432
changeset: 71954:02ceeae05432
branch: 2.7
user: Éric Araujo <merwok at netwok.org>
date: Fri Aug 19 02:28:40 2011 +0200
summary:
Turn last automatic footnote in this file into a manually-numbered one
files:
Doc/library/stdtypes.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2406,7 +2406,7 @@
.. method:: file.readline([size])
Read one entire line from the file. A trailing newline character is kept in
- the string (but may be absent when a file ends with an incomplete line). [#]_
+ the string (but may be absent when a file ends with an incomplete line). [6]_
If the *size* argument is present and non-negative, it is a maximum byte
count (including the trailing newline) and an incomplete line may be
returned. When *size* is not 0, an empty string is returned *only* when EOF
@@ -3062,7 +3062,7 @@
.. [5] To format only a tuple you should therefore provide a singleton tuple whose only
element is the tuple to be formatted.
-.. [#] The advantage of leaving the newline on is that returning an empty string is
+.. [6] The advantage of leaving the newline on is that returning an empty string is
then an unambiguous EOF indication. It is also possible (in cases where it
might matter, for example, if you want to make an exact copy of a file while
scanning its lines) to tell whether the last line of a file ended in a newline
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list