]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix "Python" casing in a few places (GH-9001) (GH-9313)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 14 Sep 2018 19:15:10 +0000 (12:15 -0700)
committerPetr Viktorin <encukou@gmail.com>
Fri, 14 Sep 2018 19:15:10 +0000 (12:15 -0700)
(cherry picked from commit 271818fe279df5ab292789f97c3a52c477bd8f13)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
12 files changed:
Doc/howto/descriptor.rst
Doc/howto/instrumentation.rst
Doc/library/email.compat32-message.rst
Doc/library/idle.rst
Doc/library/imaplib.rst
Doc/library/inspect.rst
Doc/library/pyclbr.rst
Doc/library/syslog.rst
Doc/library/test.rst
Doc/library/unittest.mock-examples.rst
Doc/library/unittest.mock.rst
Doc/library/zipapp.rst

index e5412583a674929c409cbb2fd3c14b1660aa86a9..51520b72032867ed2f3a69f8f508da2e4ca345b1 100644 (file)
@@ -11,7 +11,7 @@ Abstract
 --------
 
 Defines descriptors, summarizes the protocol, and shows how descriptors are
-called.  Examines a custom descriptor and several built-in python descriptors
+called.  Examines a custom descriptor and several built-in Python descriptors
 including functions, properties, static methods, and class methods.  Shows how
 each works by giving a pure Python equivalent and a sample application.
 
@@ -275,7 +275,7 @@ variable name.
 To support method calls, functions include the :meth:`__get__` method for
 binding methods during attribute access.  This means that all functions are
 non-data descriptors which return bound methods when they are invoked from an
-object.  In pure python, it works like this::
+object.  In pure Python, it works like this::
 
     class Function(object):
         . . .
index b63c43c81f71d2060cb0671d1cac44551591ef5b..50cde3595034b504d21ea5ca56bb5a22beac7442 100644 (file)
@@ -369,13 +369,13 @@ available:
 .. c:function:: python.function.entry(str filename, str funcname, int lineno, frameptr)
 
    This probe point indicates that execution of a Python function has begun.
-   It is only triggered for pure-python (bytecode) functions.
+   It is only triggered for pure-Python (bytecode) functions.
 
 .. c:function:: python.function.return(str filename, str funcname, int lineno, frameptr)
 
    This probe point is the converse of :c:func:`python.function.return`, and
    indicates that execution of a Python function has ended (either via
-   ``return``, or via an exception).  It is only triggered for pure-python
+   ``return``, or via an exception).  It is only triggered for pure-Python
    (bytecode) functions.
 
 
index 6f8e489a7328e6a4b303039deed8abc5ec4cc562..2e189dccdb1aa5b4ffedfc99928e08616d5893e5 100644 (file)
@@ -5,7 +5,7 @@
 
 .. module:: email.message
    :synopsis: The base class representing email messages in a fashion
-              backward compatible with python3.2
+              backward compatible with Python 3.2
 
 
 The :class:`Message` class is very similar to the
index 58e61931aaf499714fefc787a102bda53a2225bd..0eb1b44f80222051395ecce3225daa89de2bd2ec 100644 (file)
@@ -303,7 +303,7 @@ Python Docs
    and open docs.python.org showing the latest Python documentation.
 
 Turtle Demo
-   Run the turtledemo module with example python code and turtle drawings.
+   Run the turtledemo module with example Python code and turtle drawings.
 
 Additional help sources may be added here with the Configure IDLE dialog under
 the General tab.
index 2e2c59c9ce0056a1febcf94033eb279a62ed9f06..040dab6e9f7a04171ceb4f490a1f9688575f6056 100644 (file)
@@ -517,7 +517,7 @@ An :class:`IMAP4` instance has the following methods:
       create such tags.  Although it is an RFC violation and IMAP clients and
       servers are supposed to be strict, imaplib nonetheless continues to allow
       such tags to be created for backward compatibility reasons, and as of
-      python 3.6, handles them if they are sent from the server, since this
+      Python 3.6, handles them if they are sent from the server, since this
       improves real-world compatibility.
 
 .. method:: IMAP4.subscribe(mailbox)
index bc4316fabaee5825a031a54d853a0d9f8e1efb09..300b3e76b25f7a03c13a1c1c9024240932c00e7d 100644 (file)
@@ -556,7 +556,7 @@ function.
       >>> sig.parameters['b'].annotation
       <class 'int'>
 
-   Accepts a wide range of python callables, from plain functions and classes to
+   Accepts a wide range of Python callables, from plain functions and classes to
    :func:`functools.partial` objects.
 
    Raises :exc:`ValueError` if no signature can be provided, and
index ea34dd0638caf7433f6e76bff46d42fa1f2ba7ca..a70c8df6a7b1194b277867cdd5069f4da1fbaa0e 100644 (file)
@@ -11,9 +11,9 @@
 --------------
 
 The :mod:`pyclbr` module provides limited information about the
-functions, classes, and methods defined in a python-coded module.  The
+functions, classes, and methods defined in a Python-coded module.  The
 information is sufficient to implement a module browser.  The
-information is extracted from the python source code rather than by
+information is extracted from the Python source code rather than by
 importing the module, so this module is safe to use with untrusted code.
 This restriction makes it impossible to use this module with modules not
 implemented in Python, including all standard and optional extension
index af3fb9b57f7300bbb030b2a074b82eba772cf741..7151527ce57a548341757cb5a1ccbbccfb28283c 100644 (file)
@@ -48,7 +48,7 @@ The module defines the following functions:
    .. versionchanged:: 3.2
       In previous versions, keyword arguments were not allowed, and *ident* was
       required.  The default for *ident* was dependent on the system libraries,
-      and often was ``python`` instead of the name of the python program file.
+      and often was ``python`` instead of the name of the Python program file.
 
 
 .. function:: closelog()
index aeeed0042fce90c286ddedebb23daca5d5410e43..95d7f54ba4425350105f4d882c38af079f257da9 100644 (file)
@@ -1076,7 +1076,7 @@ The :mod:`test.support` module defines the following functions:
    Either this method or :func:`bind_port` should be used for any tests
    where a server socket needs to be bound to a particular port for the
    duration of the test.
-   Which one to use depends on whether the calling code is creating a python
+   Which one to use depends on whether the calling code is creating a Python
    socket, or if an unused port needs to be provided in a constructor
    or passed to an external program (i.e. the ``-accept`` argument to
    openssl's s_server mode).  Always prefer :func:`bind_port` over
index 5bf3d575520e49bbe270523555083116059659a7..65dee7c0eb2d72c76718ace26e3db2defac0d971 100644 (file)
@@ -392,7 +392,7 @@ You can stack up multiple patch decorators using this pattern:
     >>> MyTest('test_something').test_something()
 
 When you nest patch decorators the mocks are passed in to the decorated
-function in the same order they applied (the normal *python* order that
+function in the same order they applied (the normal *Python* order that
 decorators are applied). This means from the bottom up, so in the example
 above the mock for ``test_module.ClassName2`` is passed in first.
 
index 396853cc6125b2014e280c69687d85e1620e2a61..fb325ed783143d258654f19d7d5d19e8c07a2cd1 100644 (file)
@@ -98,7 +98,7 @@ mock (or other object) during the test and restored when the test ends:
 .. note::
 
    When you nest patch decorators the mocks are passed in to the decorated
-   function in the same order they applied (the normal *python* order that
+   function in the same order they applied (the normal *Python* order that
    decorators are applied). This means from the bottom up, so in the example
    above the mock for ``module.ClassName1`` is passed in first.
 
index 26b0f19fdeb648f49e182c75f2aa58c6dc816efa..1c45b75955da10b1457b166ed339afe5f4968e6f 100644 (file)
@@ -1,8 +1,8 @@
-:mod:`zipapp` --- Manage executable python zip archives
+:mod:`zipapp` --- Manage executable Python zip archives
 =======================================================
 
 .. module:: zipapp
-   :synopsis: Manage executable python zip archives
+   :synopsis: Manage executable Python zip archives
 
 .. versionadded:: 3.5