mirror of https://github.com/python/cpython
#5486: typos.
This commit is contained in:
parent
efa7c138b6
commit
e83a4adba7
|
@ -835,7 +835,7 @@ interpreter lock and can perform any Python API calls.
|
|||
it returns -1 without setting any exception.
|
||||
|
||||
This function can be called on any thread, be it a Python thread or
|
||||
some other system thread. If it is a Python thread, it doesen't matter if
|
||||
some other system thread. If it is a Python thread, it doesn't matter if
|
||||
it holds the global interpreter lock or not.
|
||||
|
||||
.. versionadded:: 2.7
|
||||
|
|
|
@ -98,7 +98,7 @@ repository to work with::
|
|||
|
||||
python setup.py register -r http://example.com/pypi
|
||||
|
||||
The name of the section that describes the repository may also be used
|
||||
for conveniency::
|
||||
For convenience, the name of the section that describes the repository
|
||||
may also be used::
|
||||
|
||||
python setup.py register -r other
|
||||
|
|
|
@ -99,7 +99,7 @@ differentiate between the print statement with parentheses (such as ``print
|
|||
Fixers
|
||||
------
|
||||
|
||||
Each step of tranforming code is encapsulated in a fixer. The command ``2to3
|
||||
Each step of transforming code is encapsulated in a fixer. The command ``2to3
|
||||
-l`` lists them. As :ref:`documented above <2to3-using>`, each can be turned on
|
||||
and off individually. They are described here in more detail.
|
||||
|
||||
|
@ -167,11 +167,11 @@ and off individually. They are described here in more detail.
|
|||
|
||||
.. 2to3fixer:: idioms
|
||||
|
||||
This optional fixer preforms several transformations that make Python code
|
||||
more idiomatic. Type comparisions like ``type(x) is SomeClass`` and
|
||||
This optional fixer performs several transformations that make Python code
|
||||
more idiomatic. Type comparisons like ``type(x) is SomeClass`` and
|
||||
``type(x) == SomeClass`` are converted to ``isinstance(x, SomeClass)``.
|
||||
``while 1`` becomes ``while True``. This fixer also tries to make use of
|
||||
:func:`sorted` in appropiate places. For example, this block ::
|
||||
:func:`sorted` in appropriate places. For example, this block ::
|
||||
|
||||
L = list(some_iterable)
|
||||
L.sort()
|
||||
|
|
|
@ -52,7 +52,7 @@ The following exceptions are only used as base classes for other exceptions.
|
|||
The base class for all built-in exceptions. It is not meant to be directly
|
||||
inherited by user-defined classes (for that use :exc:`Exception`). If
|
||||
:func:`str` or :func:`unicode` is called on an instance of this class, the
|
||||
representation of the argument(s) to the instance are returned or the emptry
|
||||
representation of the argument(s) to the instance are returned or the empty
|
||||
string when there were no arguments. All arguments are stored in :attr:`args`
|
||||
as a tuple.
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ The object-oriented interface uses essentially two+two classes:
|
|||
|
||||
The procedural interface provides functions which are derived from the methods
|
||||
of the classes :class:`Screen` and :class:`Turtle`. They have the same names as
|
||||
the corresponding methods. A screen object is automativally created whenever a
|
||||
the corresponding methods. A screen object is automatically created whenever a
|
||||
function derived from a Screen method is called. An (unnamed) turtle object is
|
||||
automatically created whenever any of the functions derived from a Turtle method
|
||||
is called.
|
||||
|
@ -1608,7 +1608,7 @@ The public classes of the module :mod:`turtle`
|
|||
=========== ===========
|
||||
"polygon" a polygon-tuple, i.e. a tuple of pairs of coordinates
|
||||
"image" an image (in this form only used internally!)
|
||||
"compound" ``None`` (a compund shape has to be constructed using the
|
||||
"compound" ``None`` (a compound shape has to be constructed using the
|
||||
:meth:`addcomponent` method)
|
||||
=========== ===========
|
||||
|
||||
|
@ -1830,7 +1830,7 @@ There is a set of demo scripts in the turtledemo directory located in the
|
|||
|
||||
It contains:
|
||||
|
||||
- a set of 15 demo scripts demonstrating differet features of the new module
|
||||
- a set of 15 demo scripts demonstrating different features of the new module
|
||||
:mod:`turtle`
|
||||
- a demo viewer :file:`turtleDemo.py` which can be used to view the sourcecode
|
||||
of the scripts and run them at the same time. 14 of the examples can be
|
||||
|
|
Loading…
Reference in New Issue