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

Unified Diff: Doc/howto/unicode.rst

Issue 18758: Fix internal references in the documentation
Patch Set: Created 6 years, 5 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/faq/design.rst ('k') | Doc/howto/urllib2.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/howto/unicode.rst Wed Oct 09 14:20:37 2013 +0300
+++ b/Doc/howto/unicode.rst Wed Oct 09 16:49:06 2013 +0300
@@ -531,7 +531,7 @@
of partial coding sequences. The work of implementing this has already been
done for you: the built-in :func:`open` function can return a file-like object
that assumes the file's contents are in a specified encoding and accepts Unicode
-parameters for methods such as :meth:`read` and :meth:`write`. This works through
+parameters for methods such as :meth:`~io.TextIOBase.read` and :meth:`~io.TextIOBase.write`. This works through
:func:`open`\'s *encoding* and *errors* parameters which are interpreted just
like those in :meth:`str.encode` and :meth:`bytes.decode`.
@@ -656,7 +656,7 @@
and behaving like a stream returning data in encoding #2.
For example, if you have an input file *f* that's in Latin-1, you
-can wrap it with a :class:`StreamRecoder` to return bytes encoded in UTF-8::
+can wrap it with a :class:`~codecs.StreamRecoder` to return bytes encoded in UTF-8::
new_f = codecs.StreamRecoder(f,
# en/decoder: used by read() to encode its results and
« no previous file with comments | « Doc/faq/design.rst ('k') | Doc/howto/urllib2.rst » ('j') | no next file with comments »

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