Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(284)

Unified Diff: Doc/library/difflib.rst

Issue 18758: Fix internal references in the documentation
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/library/dbm.rst ('k') | Doc/library/enum.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/difflib.rst Wed Oct 09 14:20:37 2013 +0300
+++ b/Doc/library/difflib.rst Wed Oct 09 16:49:06 2013 +0300
@@ -143,8 +143,8 @@
By default, the diff control lines (those with ``***`` or ``---``) are created
with a trailing newline. This is helpful so that inputs created from
- :func:`file.readlines` result in diffs that are suitable for use with
- :func:`file.writelines` since both the inputs and outputs have trailing
+ :func:`io.IOBase.readlines` result in diffs that are suitable for use with
+ :func:`io.IOBase.writelines` since both the inputs and outputs have trailing
newlines.
For inputs that do not have trailing newlines, set the *lineterm* argument to
@@ -275,8 +275,8 @@
By default, the diff control lines (those with ``---``, ``+++``, or ``@@``) are
created with a trailing newline. This is helpful so that inputs created from
- :func:`file.readlines` result in diffs that are suitable for use with
- :func:`file.writelines` since both the inputs and outputs have trailing
+ :func:`io.IOBase.readlines` result in diffs that are suitable for use with
+ :func:`io.IOBase.writelines` since both the inputs and outputs have trailing
newlines.
For inputs that do not have trailing newlines, set the *lineterm* argument to
@@ -630,9 +630,9 @@
Compare two sequences of lines, and generate the delta (a sequence of lines).
Each sequence must contain individual single-line strings ending with newlines.
- Such sequences can be obtained from the :meth:`readlines` method of file-like
+ Such sequences can be obtained from the :meth:`~io.IOBase.readlines` method of file-like
objects. The delta generated also consists of newline-terminated strings, ready
- to be printed as-is via the :meth:`writelines` method of a file-like object.
+ to be printed as-is via the :meth:`~io.IOBase.writelines` method of a file-like object.
.. _differ-examples:
@@ -642,7 +642,7 @@
This example compares two texts. First we set up the texts, sequences of
individual single-line strings ending with newlines (such sequences can also be
-obtained from the :meth:`readlines` method of file-like objects):
+obtained from the :meth:`~io.BaseIO.readlines` method of file-like objects):
>>> text1 = ''' 1. Beautiful is better than ugly.
... 2. Explicit is better than implicit.
« no previous file with comments | « Doc/library/dbm.rst ('k') | Doc/library/enum.rst » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+