]> granicus.if.org Git - python/commitdiff
#5486: typos.
authorGeorg Brandl <georg@python.org>
Fri, 13 Mar 2009 19:03:58 +0000 (19:03 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 13 Mar 2009 19:03:58 +0000 (19:03 +0000)
Doc/c-api/init.rst
Doc/distutils/packageindex.rst
Doc/library/2to3.rst
Doc/library/exceptions.rst
Doc/library/turtle.rst

index ec6207baf4d1604deba5b3dc1f4b497a92292374..14292cbef06670c9ab28e590987c442a1d61cb63 100644 (file)
@@ -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
index c4cbf886167ed3c035793506aa6aaaa0bd894d2d..1498394481a21fe381c9746b65afb695b75242f4 100644 (file)
@@ -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
index 03cfbbee7127e78d7baaa5199e92caa773a8ec60..7011f92b2baae107f81a4205b32dfc5a7433214f 100644 (file)
@@ -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()
index 9673dab8f14e16774fa6541bed02e742fdc8fd88..a50ffbfe64ab4c6c7f0f8d9c87d24af644c70d29 100644 (file)
@@ -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.
 
index fd84597534a53cd0c9708b68266d57f1779174f4..97074204a4b1adde6388b3f0fb3ba42feab10054 100644 (file)
@@ -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