]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#5486: typos.
authorGeorg Brandl <georg@python.org>
Fri, 13 Mar 2009 19:04:40 +0000 (19:04 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 13 Mar 2009 19:04:40 +0000 (19:04 +0000)
15 files changed:
Doc/c-api/buffer.rst
Doc/c-api/init.rst
Doc/c-api/typeobj.rst
Doc/distutils/packageindex.rst
Doc/library/2to3.rst
Doc/library/cgi.rst
Doc/library/exceptions.rst
Doc/library/importlib.rst
Doc/library/pickle.rst
Doc/library/re.rst
Doc/library/tkinter.ttk.rst
Doc/library/tokenize.rst
Doc/library/turtle.rst
Doc/reference/datamodel.rst
Doc/reference/expressions.rst

index 1dc032ef697c99628853c08a2e549fcb5368d73c..c46028b72a8b66e8656b79b2fc8c2c5b5ba9a321 100644 (file)
@@ -93,7 +93,7 @@ could be used to pass around structured data in its native, in-memory format.
       occur (striding in a contiguous memory block).
 
       Here is a function that returns a pointer to the element in an N-D array
-      pointed to by an N-dimesional index when there are both non-NULL strides
+      pointed to by an N-dimensional index when there are both non-NULL strides
       and suboffsets::
 
           void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,
index b63ab9f7f747a4ba342265813946a3fd34966582..2d6b9981cec32d82b6ad1c11f1fdc425421b2d06 100644 (file)
@@ -820,7 +820,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 7dd576e7bbaec58f03837bfc8744efbca69b6a42..2e2f9c4f0ebba0926eda4431d9eef0740e239932 100644 (file)
@@ -1214,7 +1214,7 @@ member in the :ctype:`PyTypeObject` structure should be *NULL*.  Otherwise, the
       export, *view* is the :ctype:`Py_buffer` struct to fill, and *flags* gives
       the conditions the caller wants the memory under.  (See
       :cfunc:`PyObject_GetBuffer` for all flags.)  :cmember:`bf_getbuffer` is
-      responsible for filling *view* with the approiate information.
+      responsible for filling *view* with the appropriate information.
       (:cfunc:`PyBuffer_FillView` can be used in simple cases.)  See
       :ctype:`Py_buffer`\s docs for what needs to be filled in.
 
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 e9b2c77c1ebab07c7de73dacb6b3e1647a68927a..ad7d348ac17eccb1e33150be32c1c3997c0e3610 100644 (file)
@@ -265,12 +265,12 @@ algorithms implemented in this module in other circumstances.
 .. function:: parse_qs(qs[, keep_blank_values[, strict_parsing]])
 
    This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
-   instead. It is maintained here only for backward compatiblity.
+   instead. It is maintained here only for backward compatibility.
 
 .. function:: parse_qsl(qs[, keep_blank_values[, strict_parsing]])
 
    This function is deprecated in this module. Use :func:`urllib.parse.parse_qs`
-   instead. It is maintained here only for backward compatiblity.
+   instead. It is maintained here only for backward compatibility.
 
 .. function:: parse_multipart(fp, pdict)
 
index b1626f26bafdb8d22151517046e2a8dc94f08579..7d8e1b3c10d493b02d197eb66828cb912ecfa098 100644 (file)
@@ -53,7 +53,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 4610b575dd2ef34e01e4ae80a4c3e64844ad38dc..3b2a288fa22791780d9521e1be99c8e47b6ac990 100644 (file)
@@ -78,9 +78,9 @@ Functions
 
     The :func:`import_module` function acts as a simplifying wrapper around
     :func:`__import__`. This means all semantics of the function are derived
-    from :func:`__import__`, including requiring the package where an import is
-    occuring from to already be imported (i.e., *package* must already be
-    imported).
+    from :func:`__import__`, including requiring the package from which an
+    import is occurring to have been previously imported (i.e., *package*
+    must already be imported).
 
 :mod:`importlib.abc` -- Abstract base classes related to import
 ---------------------------------------------------------------
index 4b329ae67f3284c3acd19d235759a7aba9a6ba28..9a31520e644a5afc8bb0151d5d838dfc32ba914d 100644 (file)
@@ -473,13 +473,13 @@ objects. [#]_
 Although powerful, implementing :meth:`__reduce__` directly in your classes is
 error prone.  For this reason, class designers should use the high-level
 interface (i.e., :meth:`__getnewargs__`, :meth:`__getstate__` and
-:meth:`__setstate__`) whenever possible.  We will show however cases where using
+:meth:`__setstate__`) whenever possible.  We will show, however, cases where using
 :meth:`__reduce__` is the only option or leads to more efficient pickling or
 both.
 
-The interface is currently defined as follow. The :meth:`__reduce__` method
+The interface is currently defined as follows. The :meth:`__reduce__` method
 takes no argument and shall return either a string or preferably a tuple (the
-returned object is often refered as the "reduce value").
+returned object is often referred to as the "reduce value").
 
 If a string is returned, the string should be interpreted as the name of a
 global variable.  It should be the object's local name relative to its module;
index ed50ddb0f7e6de5a323140ccd27fb2038a48f052..6e499a0ebbe1d89d645791291a1f7c16a1d1e86c 100644 (file)
@@ -16,7 +16,7 @@ those found in Perl.  The :mod:`re` module is always available.
 Both patterns and strings to be searched can be Unicode strings as well as
 8-bit strings. However, Unicode strings and 8-bit strings cannot be mixed:
 that is, you cannot match an Unicode string with a byte pattern or
-vice-versa; similarly, when asking for a substition, the replacement
+vice-versa; similarly, when asking for a substitution, the replacement
 string must be of the same type as both the pattern and the search string.
 
 Regular expressions use the backslash character (``'\'``) to indicate
index 8875c774aa8116bb9ae481c7c0b88f308d8a4783..de4988aa488ea79ad75ec8397516038a126575b4 100644 (file)
@@ -139,7 +139,7 @@ scrollbar.
    +----------------+---------------------------------------------------------+
    | option         | description                                             |
    +================+=========================================================+
-   | xscrollcommand | Used to comunicate with horizontal scrollbars.          |
+   | xscrollcommand | Used to communicate with horizontal scrollbars.         |
    |                |                                                         |
    |                | When the view in the widget's window change, the widget |
    |                | will generate a Tcl command based on the scrollcommand. |
@@ -149,7 +149,7 @@ scrollbar.
    |                | the scrollbar to be updated whenever the view in the    |
    |                | window changes.                                         |
    +----------------+---------------------------------------------------------+
-   | yscrollcommand | Used to comunicate with vertical scrollbars.            |
+   | yscrollcommand | Used to communicate with vertical scrollbars.           |
    |                | For some more information, see above.                   |
    +----------------+---------------------------------------------------------+
 
index 197b574e67b5df2c1bf8d1a502ca0ee7fffb4406..acb0b786fc0eef69efc3e60e2886d905a049602b 100644 (file)
@@ -82,7 +82,7 @@ function it uses to do this is available:
 .. function:: detect_encoding(readline)
 
     The :func:`detect_encoding` function is used to detect the encoding that
-    should be used to decode a Python source file. It requires one argment,
+    should be used to decode a Python source file. It requires one argument,
     readline, in the same way as the :func:`tokenize` generator.
 
     It will call readline a maximum of twice, and return the encoding used
index da3e475ba91a491204b250f221dfdb90282bcdcf..223628601f09927fa5b69f139a145987180d18ea 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.
@@ -1584,7 +1584,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)
    =========== ===========
 
@@ -1806,7 +1806,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
index e5cc1b92a9474f1dda970d86ab3bd16b24a44ab7..2e4a77698fb02877f6c3af68ae8a581fce447a8e 100644 (file)
@@ -1240,7 +1240,7 @@ Basic customization
    ``isinstance(obj, collections.Hashable)`` (unlike classes which define their
    own :meth:`__hash__` to explicitly raise :exc:`TypeError`).
 
-   If a class that overrrides :meth:`__eq__` needs to retain the implementation
+   If a class that overrides :meth:`__eq__` needs to retain the implementation
    of :meth:`__hash__` from a parent class, the interpreter must be told this
    explicitly by setting ``__hash__ = <ParentClass>.__hash__``. Otherwise the
    inheritance of :meth:`__hash__` will be blocked, just as if :attr:`__hash__`
index b1717cfc5dcd62da99fa008924410f002b14ee5a..b3cce006921eae14e0a01f57921ebe6e36ea84e8 100644 (file)
@@ -1300,7 +1300,7 @@ groups from right to left).
 .. [#] While comparisons between strings make sense at the byte level, they may
    be counter-intuitive to users.  For example, the strings ``"\u00C7"`` and
    ``"\u0327\u0043"`` compare differently, even though they both represent the
-   same unicode character (LATIN CAPTITAL LETTER C WITH CEDILLA).  To compare
+   same unicode character (LATIN CAPITAL LETTER C WITH CEDILLA).  To compare
    strings in a human recognizable way, compare using
    :func:`unicodedata.normalize`.