E581 Issue #25161: Add full stops in documentation; patch by Takase Arihiro · python/cpython@d21e0b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit d21e0b5

Browse files
committed
Issue #25161: Add full stops in documentation; patch by Takase Arihiro
1 parent cfad543 commit d21e0b5

38 files changed

+42
-40
lines changed

Doc/c-api/code.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ bound into a function.
2929

3030
.. c:function:: int PyCode_Check(PyObject *co)
3131
32-
Return true if *co* is a :class:`code` object
32+
Return true if *co* is a :class:`code` object.
3333
3434
.. c:function:: int PyCode_GetNumFree(PyCodeObject *co)
3535

Doc/c-api/gen.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ than explicitly calling :c:func:`PyGen_New`.
1717

1818
.. c:var:: PyTypeObject PyGen_Type
1919
20-
The type object corresponding to generator objects
20+
The type object corresponding to generator objects.
2121

2222

2323
.. c:function:: int PyGen_Check(ob)

Doc/c-api/veryhigh.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ the same library that the Python runtime is using.
201201
.. c:function:: struct _node* PyParser_SimpleParseFile(FILE *fp, const char *filename, int start)
202202
203203
This is a simplified interface to :c:func:`PyParser_SimpleParseFileFlags` below,
204-
leaving *flags* set to ``0``
204+
leaving *flags* set to ``0``.
205205
206206
207207
.. c:function:: struct _node* PyParser_SimpleParseFileFlags(FILE *fp, const char *filename, int start, int flags)

Doc/distutils/apiref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ timestamp dependency analysis.
920920

921921
Walk two filename lists in parallel, testing if each source is newer than its
922922
corresponding target. Return a pair of lists (*sources*, *targets*) where
923-
source is newer than target, according to the semantics of :func:`newer`
923+
source is newer than target, according to the semantics of :func:`newer`.
924924

925925
.. % % equivalent to a listcomp...
926926

Doc/glossary.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ Glossary
867867
without interfering with the behavi AB6E our of other Python applications
868868
running on the same system.
869869

870-
See also :ref:`scripts-pyvenv`
870+
See also :ref:`scripts-pyvenv`.
871871

872872
virtual machine
873873
A computer defined entirely in software. Python's virtual machine

Doc/library/2to3.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ and off individually. They are described here in more detail.
271271
272272
.. 2to3fixer:: input
273273
274-
Converts ``input(prompt)`` to ``eval(input(prompt))``
274+
Converts ``input(prompt)`` to ``eval(input(prompt))``.
275275
276276
.. 2to3fixer:: intern
277277

Doc/library/argparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,4 +1984,4 @@ A partial upgrade path from :mod:`optparse` to :mod:`argparse`:
19841984
``%(default)s`` and ``%(prog)s``.
19851985

19861986
* Replace the OptionParser constructor ``version`` argument with a call to
1987-
``parser.add_argument('--version', action='version', version='<the version>')``
1987+
``parser.add_argument('--version', action='version', version='<the version>')``.

Doc/library/asyncio-protocol.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ BaseSubprocessTransport
232232

233233
.. method:: kill(self)
234234

235-
Kill the subprocess, as in :meth:`subprocess.Popen.kill`
235+
Kill the subprocess, as in :meth:`subprocess.Popen.kill`.
236236

237237
On POSIX systems, the function sends SIGKILL to the subprocess.
238238
On Windows, this method is an alias for :meth:`terminate`.

Doc/library/bdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ The :mod:`bdb` module also defines two classes:
231231
.. method:: set_until(frame)
232232

233233
Stop when the line with the line no greater than the current one is
234-
reached or when returning from current frame
234+
reached or when returning from current frame.
235235

236236
.. method:: set_trace([frame])
237237

Doc/library/contextlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ advance::
543543

544544
Due to the way the decorator protocol works, a callback function
545545
declared this way cannot take any parameters. Instead, any resources to
546-
be released must be accessed as closure variables
546+
be released must be accessed as closure variables.
547547

548548

549549
Using a context manager as a function decorator

0 commit comments

Comments
 (0)
0