]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merged revisions 84945 via svnmerge from
authorGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 08:56:53 +0000 (08:56 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 6 Oct 2010 08:56:53 +0000 (08:56 +0000)
svn+ssh://svn.python.org/python/branches/py3k

........
  r84945 | georg.brandl | 2010-09-21 16:48:28 +0200 (Di, 21 Sep 2010) | 1 line

  #9911: doc copyedits.
........

25 files changed:
Doc/c-api/arg.rst
Doc/c-api/unicode.rst
Doc/distutils/builtdist.rst
Doc/extending/newtypes.rst
Doc/faq/design.rst
Doc/faq/programming.rst
Doc/glossary.rst
Doc/howto/descriptor.rst
Doc/howto/sockets.rst
Doc/library/2to3.rst
Doc/library/bisect.rst
Doc/library/http.cookies.rst
Doc/library/logging.rst
Doc/library/multiprocessing.rst
Doc/library/pickle.rst
Doc/library/profile.rst
Doc/library/readline.rst
Doc/library/telnetlib.rst
Doc/library/tkinter.tix.rst
Doc/library/turtle.rst
Doc/library/unittest.rst
Doc/library/urllib.parse.rst
Doc/library/winreg.rst
Doc/reference/expressions.rst
Doc/whatsnew/3.1.rst

index 7ebd2836175f97a60e516e1d9a700ed1e0fabb58..b5e51f6fc18ff5d51d2881849464fb7b66b035b6 100644 (file)
@@ -65,7 +65,7 @@ Unless otherwise stated, buffers are not NUL-terminated.
    .. note::
       This format does not accept bytes-like objects.  If you want to accept
       filesystem paths and convert them to C character strings, it is
-      preferrable to use the ``O&`` format with :cfunc:`PyUnicode_FSConverter`
+      preferable to use the ``O&`` format with :cfunc:`PyUnicode_FSConverter`
       as *converter*.
 
 ``s*`` (:class:`str`, :class:`bytes`, :class:`bytearray` or buffer compatible object) [Py_buffer]
index 014571e634a1e0e683fb64d10079704b4c94eb63..14d1c27088ae9c5bd5d2607381e216f639509720 100644 (file)
@@ -358,7 +358,7 @@ To encode and decode file names and other environment strings,
 :cdata:`Py_FileSystemEncoding` should be used as the encoding, and
 ``"surrogateescape"`` should be used as the error handler (:pep:`383`). To
 encode file names during argument parsing, the ``"O&"`` converter should be
-used, passsing :func:`PyUnicode_FSConverter` as the conversion function:
+used, passing :cfunc:`PyUnicode_FSConverter` as the conversion function:
 
 .. cfunction:: int PyUnicode_FSConverter(PyObject* obj, void* result)
 
index 1cd5891457ce931ae3e7243de407973c506a92aa..2a91ee32ffe341c84053cd778f2b266d74fca1a5 100644 (file)
@@ -357,7 +357,7 @@ would create a 64bit installation executable on your 32bit version of Windows.
 
 To cross-compile, you must download the Python source code and cross-compile
 Python itself for the platform you are targetting - it is not possible from a
-binary installtion of Python (as the .lib etc file for other platforms are
+binary installation of Python (as the .lib etc file for other platforms are
 not included.)  In practice, this means the user of a 32 bit operating
 system will need to use Visual Studio 2008 to open the
 :file:`PCBuild/PCbuild.sln` solution in the Python source tree and build the
index 63ea2a65dcd381863cce483647b9f04ad72a8a50..d48efc94f1f361ed16f52327c6a2cc7ae2b088e8 100644 (file)
@@ -1249,7 +1249,7 @@ This function is called with two Python objects and the operator as arguments,
 where the operator is one of ``Py_EQ``, ``Py_NE``, ``Py_LE``, ``Py_GT``,
 ``Py_LT`` or ``Py_GT``.  It should compare the two objects with respect to the
 specified operator and return ``Py_True`` or ``Py_False`` if the comparison is
-successfull, ``Py_NotImplemented`` to indicate that comparison is not
+successful, ``Py_NotImplemented`` to indicate that comparison is not
 implemented and the other object's comparison method should be tried, or *NULL*
 if an exception was set.
 
index 0753934d4e84baaf36bb49bd5eee41c5a0a45597..3889774ee5f6bd37eb32c61b5f4f9c163d47c166 100644 (file)
@@ -28,7 +28,7 @@ coding-style conflicts.  In C there are many different ways to place the braces.
 If you're used to reading and writing code that uses one style, you will feel at
 least slightly uneasy when reading (or being required to write) another style.
 
-Many coding styles place begin/end brackets on a line by themself.  This makes
+Many coding styles place begin/end brackets on a line by themselves.  This makes
 programs considerably longer and wastes valuable screen space, making it harder
 to get a good overview of a program.  Ideally, a function should fit on one
 screen (say, 20-30 lines).  20 lines of Python can do a lot more work than 20
index 3c9e5f4d85c55e957d5a40374a4473d8a6d77c0c..7226e703a115d3632a0befe20a36eca5f56c9013 100644 (file)
@@ -952,7 +952,7 @@ Is there an equivalent to Perl's chomp() for removing trailing newlines from str
 -------------------------------------------------------------------------------------
 
 Starting with Python 2.2, you can use ``S.rstrip("\r\n")`` to remove all
-occurences of any line terminator from the end of the string ``S`` without
+occurrences of any line terminator from the end of the string ``S`` without
 removing other trailing whitespace.  If the string ``S`` represents more than
 one line, with several empty lines at the end, the line terminators for all the
 blank lines will be removed::
index 8dea22817b3fa8b878d12214466a300ff7cd8a48..a9df07263ae09de6c7a9c544c206c074e903efb5 100644 (file)
@@ -19,7 +19,7 @@ Glossary
 
    2to3
       A tool that tries to convert Python 2.x code to Python 3.x code by
-      handling most of the incompatibilites which can be detected by parsing the
+      handling most of the incompatibilities which can be detected by parsing the
       source and traversing the parse tree.
 
       2to3 is available in the standard library as :mod:`lib2to3`; a standalone
index a9ef1d832fd1703aa9e2b9e5d004dbaa4a574720..cdb6a8ec3da09412845a1f6eec2d5caf3d0d8a1f 100644 (file)
@@ -296,7 +296,7 @@ Running the interpreter shows how the function descriptor works in practice::
     <bound method D.f of <__main__.D object at 0x00B18C90>>
 
 The output suggests that bound and unbound methods are two different types.
-While they could have been implemented that way, the actual C implemention of
+While they could have been implemented that way, the actual C implementation of
 :ctype:`PyMethod_Type` in
 `Objects/classobject.c <http://svn.python.org/view/python/trunk/Objects/classobject.c?view=markup>`_
 is a single object with two different representations depending on whether the
index 9f7fe684651240ab68ca13cddd751f96f1a3f74e..3927544b700acefe7f0ce126199252dd9205e08f 100644 (file)
@@ -313,7 +313,7 @@ process is likely to be screwed up.
 Non-blocking Sockets
 ====================
 
-If you've understood the preceeding, you already know most of what you need to
+If you've understood the preceding, you already know most of what you need to
 know about the mechanics of using sockets. You'll still use the same calls, in
 much the same ways. It's just that, if you do it right, your app will be almost
 inside-out.
index f3be8fa036b5a8453a0f17ebbc5e56aae15fac5f..de31251cec7766431a259473dd8f5ee1be4f4387 100644 (file)
@@ -89,7 +89,7 @@ process.
 Since some print statements can be parsed as function calls or statements, 2to3
 cannot always read files containing the print function.  When 2to3 detects the
 presence of the ``from __future__ import print_function`` compiler directive, it
-modifies its internal grammar to interpert :func:`print` as a function.  This
+modifies its internal grammar to interpret :func:`print` as a function.  This
 change can also be enabled manually with the :option:`-p` flag.  Use
 :option:`-p` to run fixers on code that already has had its print statements
 converted.
index 8bf0949597603492765370a53f1c7ceb841359b7..eb231598edf15c31578895042bd47e120a80de14 100644 (file)
@@ -125,7 +125,7 @@ a 'B', and so on::
 
 Unlike the :func:`sorted` function, it does not make sense for the :func:`bisect`
 functions to have *key* or *reversed* arguments because that would lead to an
-inefficent design (successive calls to bisect functions would not "remember"
+inefficient design (successive calls to bisect functions would not "remember"
 all of the previous key lookups).
 
 Instead, it is better to search a list of precomputed keys to find the index
index 0151e9449b4a49f04bad9d2432fba34808d602e0..472ddcf5b782e3e7e550b334daae222ac660d300 100644 (file)
@@ -125,7 +125,7 @@ Morsel Objects
    * ``version``
    * ``httponly``
 
-   The attribute :attr:`httponly` specifies that the cookie is only transfered
+   The attribute :attr:`httponly` specifies that the cookie is only transferred
    in HTTP requests, and is not accessible through JavaScript. This is intended
    to mitigate some forms of cross-site scripting.
 
index 2b8e92c825f1d7475512855d2dbfaa37c6042a42..c977eb8bd63383f52da27c66e11ae1d81082ae56 100644 (file)
@@ -2572,7 +2572,7 @@ wire).
    .. attribute:: exc_info
 
       Exception tuple (à la `sys.exc_info`) or `None` if no exception
-      information is availble.
+      information is available.
 
    .. attribute:: func
 
index 27b4c9075314a8d48670d094b38a0a57fe600baf..e23b92637ed1c337019d31458a817068deeb4544 100644 (file)
@@ -374,7 +374,7 @@ The :mod:`multiprocessing` package mostly replicates the API of the
       Otherwise a daemonic process would leave its children orphaned if it gets
       terminated when its parent process exits. Additionally, these are **not**
       Unix daemons or services, they are normal processes that will be
-      terminated (and not joined) if non-dameonic processes have exited.
+      terminated (and not joined) if non-daemonic processes have exited.
 
    In addition to the  :class:`Threading.Thread` API, :class:`Process` objects
    also support the following attributes and methods:
index 8157a525fe421d006bc2e5a2815c404406dc6859..3358053bd04d4c8e2e8b34e6d36de4ba82d0cb40 100644 (file)
@@ -197,7 +197,7 @@ process more convenient:
    that meets this interface.
 
    Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
-   which are used to control compatiblity support for pickle stream generated
+   which are used to control compatibility support for pickle stream generated
    by Python 2.x.  If *fix_imports* is True, pickle will try to map the old
    Python 2.x names to the new names used in Python 3.x.  The *encoding* and
    *errors* tell pickle how to decode 8-bit string instances pickled by Python
@@ -213,7 +213,7 @@ process more convenient:
    ignored.
 
    Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
-   which are used to control compatiblity support for pickle stream generated
+   which are used to control compatibility support for pickle stream generated
    by Python 2.x.  If *fix_imports* is True, pickle will try to map the old
    Python 2.x names to the new names used in Python 3.x.  The *encoding* and
    *errors* tell pickle how to decode 8-bit string instances pickled by Python
@@ -310,7 +310,7 @@ The :mod:`pickle` module exports two classes, :class:`Pickler` and
    that meets this interface.
 
    Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
-   which are used to control compatiblity support for pickle stream generated
+   which are used to control compatibility support for pickle stream generated
    by Python 2.x.  If *fix_imports* is True, pickle will try to map the old
    Python 2.x names to the new names used in Python 3.x.  The *encoding* and
    *errors* tell pickle how to decode 8-bit string instances pickled by Python
@@ -429,7 +429,7 @@ implementation of this behaviour::
 
 .. index:: single: __getnewargs__() (copy protocol)
 
-Classes can alter the default behaviour by providing one or severals special
+Classes can alter the default behaviour by providing one or several special
 methods.  In protocol 2 and newer, classes that implements the
 :meth:`__getnewargs__` method can dictate the values passed to the
 :meth:`__new__` method upon unpickling.  This is often needed for classes
index 5888b95ee9b29964a1059ef09476ebfcba95bf95..e66ceafdd29ac86259509428aa43e8acea306da9 100644 (file)
@@ -599,7 +599,7 @@ The resulting profiler will then call :func:`your_time_func`.
    integers, you can also invoke the class constructor with a second argument
    specifying the real duration of one unit of time.  For example, if
    :func:`your_integer_time_func` returns times measured in thousands of seconds,
-   you would constuct the :class:`Profile` instance as follows::
+   you would construct the :class:`Profile` instance as follows::
 
       pr = profile.Profile(your_integer_time_func, 0.001)
 
index abb196d7021e6a7b32af47def3abd180142707ad..e99d31707f5e9c7caa4cb914d814f1a9d6b0148b 100644 (file)
@@ -15,6 +15,16 @@ made using  this module affect the behaviour of both the interpreter's
 interactive prompt  and the prompts offered by the built-in :func:`input`
 function.
 
+.. note::
+
+  On MacOS X the :mod:`readline` module can be implemented using
+  the ``libedit`` library instead of GNU readline.
+
+  The configuration file for ``libedit`` is different from that
+  of GNU readline. If you programmatically load configuration strings
+  you can check for the text "libedit" in :const:`readline.__doc__`
+  to differentiate between GNU readline and libedit.
+
 The :mod:`readline` module defines the following functions:
 
 
index 102a42a24cc9159f2937b9a3b44fa7129478a2d4..6e3abdea4d1a5b626b264d3cf1d3f8bd987f7e76 100644 (file)
@@ -191,7 +191,7 @@ Telnet Objects
 
    If a regular expression ends with a greedy match (such as ``.*``) or if more
    than one expression can match the same input, the results are
-   indeterministic, and may depend on the I/O timing.
+   non-deterministic, and may depend on the I/O timing.
 
 
 .. method:: Telnet.set_option_negotiation_callback(callback)
index bbe66d8d6a1f5c37b4161397f387dc40f8437921..68d8f5a53083e4d5d90aac4b454815726d31f1bf 100644 (file)
@@ -122,7 +122,7 @@ Basic Widgets
    The `ComboBox
    <http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixComboBox.htm>`_
    widget is similar to the combo box control in MS Windows. The user can select a
-   choice by either typing in the entry subwdget or selecting from the listbox
+   choice by either typing in the entry subwidget or selecting from the listbox
    subwidget.
 
 .. Python Demo of:
index c6ba3165ca74ce33bb987ef49a633b1740af3b29..711e1a1f3ecd89cf4ab1c4d6945c0a0c1aba0fbb 100644 (file)
@@ -1957,7 +1957,7 @@ Methods specific to Screen, not inherited from TurtleScreen
 .. function:: setup(width=_CFG["width"], height=_CFG["height"], startx=_CFG["leftright"], starty=_CFG["topbottom"])
 
    Set the size and position of the main window.  Default values of arguments
-   are stored in the configuration dicionary and can be changed via a
+   are stored in the configuration dictionary and can be changed via a
    :file:`turtle.cfg` file.
 
    :param width: if an integer, a size in pixels, if a float, a fraction of the
index 560c3f9a16d5b0e803b5cb98018d7b2d2312222a..d88b8230b596f833923f8428b08febd6835ab9df 100644 (file)
@@ -504,7 +504,7 @@ The following decorators implement test skipping and expected failures:
 
 .. function:: skipUnless(condition, reason)
 
-   Skip the decoratored test unless *condition* is true.
+   Skip the decorated test unless *condition* is true.
 
 .. function:: expectedFailure
 
@@ -1241,8 +1241,8 @@ Loading and running tests
 
    .. attribute:: expectedFailures
 
-      A list contaning 2-tuples of :class:`TestCase` instances and strings
-      holding formatted tracebacks.  Each tuple represents a expected failures
+      A list containing 2-tuples of :class:`TestCase` instances and strings
+      holding formatted tracebacks.  Each tuple represents an expected failure
       of the test case.
 
    .. attribute:: unexpectedSuccesses
index 4fb2936f9cf2f504cd834eacbcf5b97b44f96b6e..3e1c628296bce817030000e438938661ce3041b0 100644 (file)
@@ -354,7 +354,7 @@ The :mod:`urllib.parse` module defines the following functions:
    :rfc:`3986` - Uniform Resource Identifiers
       This is the current standard (STD66). Any changes to urlparse module
       should conform to this. Certain deviations could be observed, which are
-      mostly due backward compatiblity purposes and for certain to de-facto
+      mostly for backward compatibility purposes and for certain de-facto
       parsing requirements as commonly observed in major browsers.
 
    :rfc:`2396` - Uniform Resource Identifiers (URI): Generic Syntax
index bd7e8d44bc489d08e02689b8c28e6f65259cc279..68f7e9126336a7e60660d383f24588cd29f50247 100644 (file)
@@ -508,7 +508,7 @@ For more information, see `Registry Key Security and Access
 64-bit Specific
 ***************
 
-For more information, see `Accesing an Alternate Registry View
+For more information, see `Accessing an Alternate Registry View
 <http://msdn.microsoft.com/en-us/library/aa384129(v=VS.85).aspx>`__.
 
 .. data:: KEY_WOW64_64KEY
index f6a90cc20e131567113a56472556be5bc7bdeaaa..7baad6b7c9ba10786edc4dd264afe271b0b740d9 100644 (file)
@@ -344,7 +344,7 @@ All of this makes generator functions quite similar to coroutines; they yield
 multiple times, they have more than one entry point and their execution can be
 suspended.  The only difference is that a generator function cannot control
 where should the execution continue after it yields; the control is always
-transfered to the generator's caller.
+transferred to the generator's caller.
 
 The :keyword:`yield` statement is allowed in the :keyword:`try` clause of a
 :keyword:`try` ...  :keyword:`finally` construct.  If the generator is not
index b4f95a7c8601b5c284486f8f149465665aa3b258..1b6b3ce11f15aff0945076f1828f4259f4a13244 100644 (file)
@@ -352,7 +352,7 @@ New, Improved, and Deprecated Modules
 *  :class:`functools.partial` objects can now be pickled.
 
   (Suggested by Antoine Pitrou and Jesse Noller.  Implemented by
-  Jack Diedrich; :issue:`5228`.)
+  Jack Diederich; :issue:`5228`.)
 
 * Add :mod:`pydoc` help topics for symbols so that ``help('@')``
   works as expected in the interactive environment.