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

Side by Side Diff: Doc/library/2to3.rst

Issue 18758: Fix internal references in the documentation
Patch Set: Created 6 years, 5 months ago
Left:
Right:
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 unified diff | Download patch
« no previous file with comments | « Doc/howto/urllib2.rst ('k') | Doc/library/abc.rst » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 .. _2to3-reference: 1 .. _2to3-reference:
2 2
3 2to3 - Automated Python 2 to 3 code translation 3 2to3 - Automated Python 2 to 3 code translation
4 =============================================== 4 ===============================================
5 5
6 .. sectionauthor:: Benjamin Peterson <benjamin@python.org> 6 .. sectionauthor:: Benjamin Peterson <benjamin@python.org>
7 7
8 2to3 is a Python program that reads Python 2.x source code and applies a series 8 2to3 is a Python program that reads Python 2.x source code and applies a series
9 of *fixers* to transform it into valid Python 3.x code. The standard library 9 of *fixers* to transform it into valid Python 3.x code. The standard library
10 contains a rich set of fixers that will handle almost all code. 2to3 supporting 10 contains a rich set of fixers that will handle almost all code. 2to3 supporting
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 to ``meth.__func__``. 283 to ``meth.__func__``.
284 284
285 .. 2to3fixer:: ne 285 .. 2to3fixer:: ne
286 286
287 Converts the old not-equal syntax, ``<>``, to ``!=``. 287 Converts the old not-equal syntax, ``<>``, to ``!=``.
288 288
289 .. 2to3fixer:: next 289 .. 2to3fixer:: next
290 290
291 Converts the use of iterator's :meth:`~iterator.next` methods to the 291 Converts the use of iterator's :meth:`~iterator.next` methods to the
292 :func:`next` function. It also renames :meth:`next` methods to 292 :func:`next` function. It also renames :meth:`next` methods to
293 :meth:`~object.__next__`. 293 :meth:`~iterator.__next__`.
294 294
295 .. 2to3fixer:: nonzero 295 .. 2to3fixer:: nonzero
296 296
297 Renames :meth:`~object.__nonzero__` to :meth:`~object.__bool__`. 297 Renames :meth:`__nonzero__` to :meth:`~object.__bool__`.
298 298
299 .. 2to3fixer:: numliterals 299 .. 2to3fixer:: numliterals
300 300
301 Converts octal literals into the new syntax. 301 Converts octal literals into the new syntax.
302 302
303 .. 2to3fixer:: operator 303 .. 2to3fixer:: operator
304 304
305 Converts calls to various functions in the :mod:`operator` module to other, 305 Converts calls to various functions in the :mod:`operator` module to other,
306 but equivalent, function calls. When needed, the appropriate ``import`` 306 but equivalent, function calls. When needed, the appropriate ``import``
307 statements are added, e.g. ``import collections``. The following mapping 307 statements are added, e.g. ``import collections``. The following mapping
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 .. moduleauthor:: Collin Winter 420 .. moduleauthor:: Collin Winter
421 .. moduleauthor:: Benjamin Peterson <benjamin@python.org> 421 .. moduleauthor:: Benjamin Peterson <benjamin@python.org>
422 422
423 423
424 .. note:: 424 .. note::
425 425
426 The :mod:`lib2to3` API should be considered unstable and may change 426 The :mod:`lib2to3` API should be considered unstable and may change
427 drastically in the future. 427 drastically in the future.
428 428
429 .. XXX What is the public interface anyway? 429 .. XXX What is the public interface anyway?
OLDNEW
« no previous file with comments | « Doc/howto/urllib2.rst ('k') | Doc/library/abc.rst » ('j') | no next file with comments »

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