Skip to content

Commit 271818f

Browse files
andresdelfinoencukou
authored andcommitted
Fix "Python" casing in a few places (GH-9001)
1 parent c9d66f0 commit 271818f

12 files changed

+16
-16
lines changed

Doc/howto/descriptor.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Abstract
1111
--------
1212

1313
Defines descriptors, summarizes the protocol, and shows how descriptors are
14-
called. Examines a custom descriptor and several built-in python descriptors
14+
called. Examines a custom descriptor and several built-in Python descriptors
1515
including functions, properties, static methods, and class methods. Shows how
1616
each works by giving a pure Python equivalent and a sample application.
1717

@@ -275,7 +275,7 @@ variable name.
275275
To support method calls, functions include the :meth:`__get__` method for
276276
binding methods during attribute access. This means that all functions are
277277
non-data descriptors which return bound methods when they are invoked from an
278-
object. In pure python, it works like this::
278+
object. In pure Python, it works like this::
279279

280280
class Function(object):
281281
. . .

Doc/howto/instrumentation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,13 +369,13 @@ available:
369369
.. c:function:: python.function.entry(str filename, str funcname, int lineno, frameptr)
370370
371371
This probe point indicates that execution of a Python function has begun.
372-
It is only triggered for pure-python (bytecode) functions.
372+
It is only triggered for pure-Python (bytecode) functions.
373373

374374
.. c:function:: python.function.return(str filename, str funcname, int lineno, frameptr)
375375
376376
This probe point is the converse of :c:func:`python.function.return`, and
377377
indicates that execution of a Python function has ended (either via
378-
``return``, or via an exception). It is only triggered for pure-python
378+
``return``, or via an exception). It is only triggered for pure-Python
379379
(bytecode) functions.
380380

381381

Doc/library/email.compat32-message.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
.. module:: email.message
77
:synopsis: The base class representing email messages in a fashion
8-
backward compatible with python3.2
8+
backward compatible with Python 3.2
99

1010

1111
The :class:`Message` class is very similar to the

Doc/library/idle.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Python Docs
303303
and open docs.python.org showing the latest Python documentation.
304304

305305
Turtle Demo
306-
Run the turtledemo module with example python code and turtle drawings.
306+
Run the turtledemo module with example Python code and turtle drawings.
307307

308308
Additional help sources may be added here with the Configure IDLE dialog under
309309
the General tab.

Doc/library/imaplib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ An :class:`IMAP4` instance has the following methods:
517517
create such tags. Although it is an RFC violation and IMAP clients and
518518
servers are supposed to be strict, imaplib nonetheless continues to allow
519519
such tags to be created for backward compatibility reasons, and as of
520-
python 3.6, handles them if they are sent from the server, since this
520+
Python 3.6, handles them if they are sent from the server, since this
521521
improves real-world compatibility.
522522

523523
.. method:: IMAP4.subscribe(mailbox)

Doc/library/inspect.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ function.
557557
>>> sig.parameters['b'].annotation
558558
<class 'int'>
559559

560-
Accepts a wide range of python callables, from plain functions and classes to
560+
Accepts a wide range of Python callables, from plain functions and classes to
561561
:func:`functools.partial` objects.
562562

563563
Raises :exc:`ValueError` if no signature can be provided, and

Doc/library/pyclbr.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
--------------
1212

1313
The :mod:`pyclbr` module provides limited information about the
14-
functions, classes, and methods defined in a python-coded module. The
14+
functions, classes, and methods defined in a Python-coded module. The
1515
information is sufficient to implement a module browser. The
16-
information is extracted from the python source code rather than by
16+
information is extracted from the Python source code rather than by
1717
importing the module, so this module is safe to use with untrusted code.
1818
This restriction makes it impossible to use this module with modules not
1919
implemented in Python, including all standard and optional extension

Doc/library/syslog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The module defines the following functions:
4848
.. versionchanged:: 3.2
4949
In previous versions, keyword arguments were not allowed, and *ident* was
5050
required. The default for *ident* was dependent on the system libraries,
51-
and often was ``python`` instead of the name of the python program file.
51+
and often was ``python`` instead of the name of the Python program file.
5252

5353

5454
.. function:: closelog()

Doc/library/test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ The :mod:`test.support` module defines the following functions:
10761076
Either this method or :func:`bind_port` should be used for any tests
10771077
where a server socket needs to be bound to a particular port for the
10781078
duration of the test.
1079-
Which one to use depends on whether the calling code is creating a python
1079+
Which one to use depends on whether the calling code is creating a Python
10801080
socket, or if an unused port needs to be provided in a constructor
10811081
or passed to an external program (i.e. the ``-accept`` argument to
10821082
openssl's s_server mode). Always prefer :func:`bind_port` over

Doc/library/unittest.mock-examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ You can stack up multiple patch decorators using this pattern:
392392
>>> MyTest('test_something').test_something()
393393

394394
When you nest patch decorators the mocks are passed in to the decorated
395-
function in the same order they applied (the normal *python* order that
395+
function in the same order they applied (the normal *Python* order that
396396
decorators are applied). This means from the bottom up, so in the example
397397
above the mock for ``test_module.ClassName2`` is passed in first.
398398

Doc/library/unittest.mock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ mock (or other object) during the test and restored when the test ends:
9898
.. note::
9999

100100
When you nest patch decorators the mocks are passed in to the decorated
101-
function in the same order they applied (the normal *python* order that
101+
function in the same order they applied (the normal *Python* order that
102102
decorators are applied). This means from the bottom up, so in the example
103103
above the mock for ``module.ClassName1`` is passed in first.
104104

Doc/library/zipapp.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:mod:`zipapp` --- Manage executable python zip archives
1+
:mod:`zipapp` --- Manage executable Python zip archives
22
=======================================================
33

44
.. module:: zipapp
5-
:synopsis: Manage executable python zip archives
5+
:synopsis: Manage executable Python zip archives
66

77
.. versionadded:: 3.5
88

0 commit comments

Comments
 (0)