]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#7388: "python".capitalize() in the Doc
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 19 Dec 2009 22:41:49 +0000 (22:41 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 19 Dec 2009 22:41:49 +0000 (22:41 +0000)
22 files changed:
Doc/c-api/init.rst
Doc/distutils/setupscript.rst
Doc/faq/extending.rst
Doc/faq/library.rst
Doc/faq/windows.rst
Doc/library/collections.rst
Doc/library/doctest.rst
Doc/library/hmac.rst
Doc/library/hotshot.rst
Doc/library/logging.rst
Doc/library/multiprocessing.rst
Doc/library/pdb.rst
Doc/library/smtplib.rst
Doc/library/socket.rst
Doc/library/stdtypes.rst
Doc/library/turtle.rst
Doc/library/unittest.rst
Doc/license.rst
Doc/tutorial/stdlib.rst
Doc/tutorial/stdlib2.rst
Doc/using/unix.rst
Doc/using/windows.rst

index 48ac14d494c9629efe59116b19a50e51df5d68b8..bc5eb43fde3b805b99c0f37248acfb8aaffdb9b4 100644 (file)
@@ -821,7 +821,7 @@ pointer and a void argument.
 .. index:: single: setcheckinterval() (in module sys)
 
 Every check interval, when the global interpreter lock is released and
-reacquired, python will also call any such provided functions.  This can be used
+reacquired, Python will also call any such provided functions.  This can be used
 for example by asynchronous IO handlers.  The notification can be scheduled from
 a worker thread and the actual call than made at the earliest convenience by the
 main thread where it has possession of the global interpreter lock and can
@@ -839,7 +839,7 @@ perform any Python API calls.
    exception.  The notification function won't be interrupted to perform another
    asynchronous notification recursively, but it can still be interrupted to
    switch threads if the global interpreter lock is released, for example, if it
-   calls back into python code.
+   calls back into Python code.
 
    This function returns 0 on success in which case the notification has been
    scheduled.  Otherwise, for example if the notification buffer is full, it
index bf4eeeb89a5c201f923e8157531e671a85be863f..faefd216920475686988782222c07147f1e20937 100644 (file)
@@ -649,7 +649,7 @@ information is sometimes used to indicate sub-releases.  These are
 1.0.1a2
     the second alpha release of the first patch version of 1.0
 
-:option:`classifiers` are specified in a python list::
+:option:`classifiers` are specified in a Python list::
 
     setup(...,
           classifiers=[
index f01b0a0bfa916ba315ba575ce806ac20caabcdea..622b787dacd48b22944f09b4c6ed07a3d8048cd8 100644 (file)
@@ -432,7 +432,7 @@ How do I find undefined g++ symbols __builtin_new or __pure_virtual?
 --------------------------------------------------------------------
 
 To dynamically load g++ extension modules, you must recompile Python, relink it
-using g++ (change LINKCC in the python Modules Makefile), and link your
+using g++ (change LINKCC in the Python Modules Makefile), and link your
 extension module using g++ (e.g., ``g++ -shared -o mymodule.so mymodule.o``).
 
 
index 305f092d327e88bc8afa35aee8be251b642489a0..b672a66e0a6adf8881fd27168266dd8e7f5508ae 100644 (file)
@@ -61,7 +61,7 @@ interpreter is installed on your platform.
 
 If you would like the script to be independent of where the Python interpreter
 lives, you can use the "env" program.  Almost all Unix variants support the
-following, assuming the python interpreter is in a directory on the user's
+following, assuming the Python interpreter is in a directory on the user's
 $PATH::
 
   #!/usr/bin/env python
index eb1d3acd03a10cdc8fc3d55b3d722310c0ad8c5a..2d701c843be0a7383ebb26b5686089aa8a401d6f 100644 (file)
@@ -204,7 +204,7 @@ The important things to remember are:
    for developing code by experiment.
 
 
-How do I make python scripts executable?
+How do I make Python scripts executable?
 ----------------------------------------
 
 On Windows 2000, the standard Python installer already associates the .py
index db9babfdaa36596503f1ad063488cea9b1ff7402..abacd91c302d290ab6475786cb5cc8ed51d2ca22 100644 (file)
@@ -491,7 +491,7 @@ added elements by appending to the right and popping to the left::
             yield s / float(n)
 
 The :meth:`rotate` method provides a way to implement :class:`deque` slicing and
-deletion.  For example, a pure python implementation of ``del d[n]`` relies on
+deletion.  For example, a pure Python implementation of ``del d[n]`` relies on
 the :meth:`rotate` method to position elements to be popped::
 
    def delete_nth(d, n):
index bd990b4fa5eef727bc97dcc6a0457302d4b9313d..de9340c65e7e4d4052fbed2d538aa207b5ea11ca 100644 (file)
@@ -1132,7 +1132,7 @@ capabilities, then you should use the advanced API.
 The advanced API revolves around two container classes, which are used to store
 the interactive examples extracted from doctest cases:
 
-* :class:`Example`: A single python :term:`statement`, paired with its expected
+* :class:`Example`: A single Python :term:`statement`, paired with its expected
   output.
 
 * :class:`DocTest`: A collection of :class:`Example`\ s, typically extracted
index 10d41f700d3c0aef70072e23f1bef5e07510243b..8b3b92b7167d7f25fc9fdb15a8ec89e1a8214b1d 100644 (file)
@@ -57,5 +57,5 @@ An HMAC object has the following methods:
 .. seealso::
 
    Module :mod:`hashlib`
-      The python module providing secure hash functions.
+      The Python module providing secure hash functions.
 
index b59d2b913a7fb758fbcae065259e910dcbd1b199..0ee0767abbf4a2b70b39904f13e35e0685b29685 100644 (file)
@@ -127,7 +127,7 @@ objects.
 Example Usage
 -------------
 
-Note that this example runs the python "benchmark" pystones.  It can take some
+Note that this example runs the Python "benchmark" pystones.  It can take some
 time to run, and will produce large output files. ::
 
    >>> import hotshot, hotshot.stats, test.pystone
index b54751924c0ac049f7e47c568cc76d868dd84690..8a2443a2192d431ae374c8310db878d49d1cb700 100644 (file)
@@ -2256,7 +2256,7 @@ A Formatter can be initialized with a format string which makes use of knowledge
 of the :class:`LogRecord` attributes - such as the default value mentioned above
 making use of the fact that the user's message and arguments are pre-formatted
 into a :class:`LogRecord`'s *message* attribute.  This format string contains
-standard python %-style mapping keys. See section :ref:`string-formatting`
+standard Python %-style mapping keys. See section :ref:`string-formatting`
 for more information on string formatting.
 
 Currently, the useful mapping keys in a :class:`LogRecord` are:
index 583659ed900613310fcce5a08d821962d2ec0634..078285000e5ff32a0abff003fad50be433b98d9d 100644 (file)
@@ -688,7 +688,7 @@ Miscellaneous
 
 .. function:: set_executable()
 
-   Sets the path of the python interpreter to use when starting a child process.
+   Sets the path of the Python interpreter to use when starting a child process.
    (By default :data:`sys.executable` is used).  Embedders will probably need to
    do some thing like ::
 
index c8e79b4f640e0e53196e9e5aee58a4fb1cf44e04..cd1597f68866e84f5cfd33e478ed778549853cd3 100644 (file)
@@ -382,7 +382,7 @@ unalias *name*
       (Pdb)
 
 run [*args* ...]
-   Restart the debugged python program. If an argument is supplied, it is split
+   Restart the debugged Python program. If an argument is supplied, it is split
    with "shlex" and the result is used as the new sys.argv. History, breakpoints,
    actions and debugger options are preserved. "restart" is an alias for "run".
 
index 4c1c61407777285210abe90dfda26044a9b78e54..c8f4ed12b09c0633a4f306587e19e5243a343012 100644 (file)
@@ -271,7 +271,7 @@ An :class:`SMTP` instance has the following methods:
    .. versionchanged:: 2.6
 
    :exc:`RuntimeError`
-     SSL/TLS support is not available to your python interpreter.
+     SSL/TLS support is not available to your Python interpreter.
 
 
 .. method:: SMTP.sendmail(from_addr, to_addrs, msg[, mail_options, rcpt_options])
index e50849dd1c54635ed5fed743b339f840c72c7c6a..d778369b21f95f5c1ab8f74cccfa12bc087e2a76 100644 (file)
@@ -751,7 +751,7 @@ Note that the :meth:`connect` operation is subject to the timeout setting, and
 in general it is recommended to call :meth:`settimeout` before calling
 :meth:`connect` or pass a timeout parameter to :meth:`create_connection`.
 The system network stack may return a connection timeout error
-of its own regardless of any python socket timeout setting.
+of its own regardless of any Python socket timeout setting.
 
 
 .. method:: socket.setsockopt(level, optname, value)
index ab935523f3f639d9e2bbb6b8f4506b425cab215a..a35a8ad2fc0639f2a8f4ea15b3ccc3b01b69804e 100644 (file)
@@ -1397,10 +1397,10 @@ The conversion types are:
 | ``'c'``    | Single character (accepts integer or single         |       |
 |            | character string).                                  |       |
 +------------+-----------------------------------------------------+-------+
-| ``'r'``    | String (converts any python object using            | \(5)  |
+| ``'r'``    | String (converts any Python object using            | \(5)  |
 |            | :func:`repr`).                                      |       |
 +------------+-----------------------------------------------------+-------+
-| ``'s'``    | String (converts any python object using            | \(6)  |
+| ``'s'``    | String (converts any Python object using            | \(6)  |
 |            | :func:`str`).                                       |       |
 +------------+-----------------------------------------------------+-------+
 | ``'%'``    | No argument is converted, results in a ``'%'``      |       |
index 32650a71f5b85b5761c8c55c4cbe85756d5ef363..07d1669ace3c4bc0dc1932f08352f43f7f67e4ec 100644 (file)
@@ -36,7 +36,7 @@ the module from within IDLE run with the ``-n`` switch.
 
 The turtle module provides turtle graphics primitives, in both object-oriented
 and procedure-oriented ways.  Because it uses :mod:`Tkinter` for the underlying
-graphics, it needs a version of python installed with Tk support.
+graphics, it needs a version of Python installed with Tk support.
 
 The object-oriented interface uses essentially two+two classes:
 
index 4de6829e8394c0da4c720bb7ded0da4b539fe6fd..460b2f32a73bfe9a9dbd720a750c75253ee7c489 100644 (file)
@@ -199,7 +199,7 @@ qualified class or method names.
 
 You can run tests with more detail (higher verbosity) by passing in the -v flag::
 
-   python-m unittest -v test_module
+   python -m unittest -v test_module
 
 For a list of all the command line options::
 
@@ -1600,7 +1600,7 @@ name then the package :file:`__init__.py` will be checked for ``load_tests``.
 
 .. note::
 
-   The default pattern is 'test*.py'. This matches all python files
+   The default pattern is 'test*.py'. This matches all Python files
    that start with 'test' but *won't* match any test directories.
 
    A pattern like 'test*' will match test packages as well as
index 6e8bfd86b9004a48ce9ab57523be9af9f9fbc6f7..f09fe98ac02f2cc071e2371d4d2c9ea676dc8c4a 100644 (file)
@@ -624,7 +624,7 @@ The :mod:`uu` module contains the following notice::
    - Use binascii module to do the actual line-by-line conversion
      between ascii and binary. This results in a 1000-fold speedup. The C
      version is still 5 times faster, though.
-   - Arguments more compliant with python standard
+   - Arguments more compliant with Python standard
 
 
 XML Remote Procedure Calls
index b11e8eb6ed253dde11e3bedeaf179165cfbbbc68..9dedd9659f03e8f2815f6763a1a9b07452bdadeb 100644 (file)
@@ -306,7 +306,7 @@ sophisticated and robust capabilities of its larger packages. For example:
 * The :mod:`xml.dom` and :mod:`xml.sax` packages provide robust support for
   parsing this popular data interchange format. Likewise, the :mod:`csv` module
   supports direct reads and writes in a common database format. Together, these
-  modules and packages greatly simplify data interchange between python
+  modules and packages greatly simplify data interchange between Python
   applications and other tools.
 
 * Internationalization is supported by a number of modules including
index 4ae85b139c2b12d9414d027c405c4637f11cafcd..514d583d9447e086ac2ae8b2aaf7527f070a23cf 100644 (file)
@@ -289,7 +289,7 @@ The :mod:`array` module provides an :class:`array()` object that is like a list
 that stores only homogeneous data and stores it more compactly.  The following
 example shows an array of numbers stored as two byte unsigned binary numbers
 (typecode ``"H"``) rather than the usual 16 bytes per entry for regular lists of
-python int objects::
+Python int objects::
 
    >>> from array import array
    >>> a = array('H', [4000, 10, 700, 22222])
index 3d562a8b09f86825c04e256a228c5841518e98b0..61e707b11c777eb2a6495711f91153b90ea06841 100644 (file)
@@ -131,14 +131,14 @@ which searches for the Python interpreter in the whole :envvar:`PATH`.  However,
 some Unices may not have the :program:`env` command, so you may need to hardcode
 ``/usr/bin/python`` as the interpreter path.
 
-To use shell commands in your python scripts, look at the :mod:`subprocess` module.
+To use shell commands in your Python scripts, look at the :mod:`subprocess` module.
 
 
 Editors
 =======
 
 Vim and Emacs are excellent editors which support Python very well.  For more
-information on how to code in python in these editors, look at:
+information on how to code in Python in these editors, look at:
 
 * http://www.vim.org/scripts/script.php?script_id=790
 * http://sourceforge.net/projects/python-mode
index d708d041cbc48ae144e85593fd92c8c6e74b7d30..f5235f19be51ebc16a9eb44ba3d4ab2beeec0bf2 100644 (file)
@@ -71,7 +71,7 @@ key features:
 
 `Enthought Python Distribution <http://www.enthought.com/products/epd.php>`_
     Popular modules (such as PyWin32) with their respective documentation, tool
-    suite for building extensible python applications
+    suite for building extensible Python applications
 
 Notice that these packages are likely to install *older* versions of Python.