Skip to content

Commit 07c1814

Browse files
Deploy preview for PR 1142 🛫
1 parent c39b45d commit 07c1814

File tree

578 files changed

+1244
-1149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

578 files changed

+1244
-1149
lines changed

pr-preview/pr-1142/_sources/extending/extending.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ A pointer to the module definition must be returned via :c:func:`PyModuleDef_Ini
426426
so that the import machinery can create the module and store it in ``sys.modules``.
427427

428428
When embedding Python, the :c:func:`!PyInit_spam` function is not called
429-
automatically unless there's an entry in the :c:data:`PyImport_Inittab` table.
429+
automatically unless there's an entry in the :c:data:`!PyImport_Inittab` table.
430430
To add the module to the initialization table, use :c:func:`PyImport_AppendInittab`,
431431
optionally followed by an import of the module::
432432

pr-preview/pr-1142/_sources/howto/instrumentation.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ should instead read:
269269
(assuming a :ref:`debug build <debug-build>` of CPython 3.6)
270270

271271

272+
.. _static-markers:
273+
272274
Available static markers
273275
------------------------
274276

pr-preview/pr-1142/_sources/library/collections.abc.rst.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,17 @@ Collections Abstract Base Classes -- Detailed Descriptions
276276
linked list), the mixins will have quadratic performance and will
277277
likely need to be overridden.
278278

279-
.. versionchanged:: 3.5
280-
The index() method added support for *stop* and *start*
281-
arguments.
279+
.. method:: index(value, start=0, stop=None)
280+
281+
Return first index of *value*.
282+
283+
Raises :exc:`ValueError` if the value is not present.
284+
285+
Supporting the *start* and *stop* arguments is optional, but recommended.
286+
287+
.. versionchanged:: 3.5
288+
The :meth:`!index` method added support for *stop* and *start*
289+
arguments.
282290

283291
.. deprecated-removed:: 3.12 3.14
284292
The :class:`ByteString` ABC has been deprecated.

pr-preview/pr-1142/_sources/library/curses.rst.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,8 +703,10 @@ The module :mod:`curses` defines the following functions:
703703
Window Objects
704704
--------------
705705

706-
Window objects, as returned by :func:`initscr` and :func:`newwin` above, have
707-
the following methods and attributes:
706+
.. class:: window
707+
708+
Window objects, as returned by :func:`initscr` and :func:`newwin` above, have
709+
the following methods and attributes:
708710

709711

710712
.. method:: window.addch(ch[, attr])

pr-preview/pr-1142/_sources/library/dis.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ operation is being performed, so the intermediate analysis object isn't useful:
270270
Added the *show_caches* and *adaptive* parameters.
271271

272272

273-
.. function:: distb(tb=None, *, file=None, show_caches=False, adaptive=False,
273+
.. function:: distb(tb=None, *, file=None, show_caches=False, adaptive=False, \
274274
show_offset=False)
275275

276276
Disassemble the top-of-stack function of a traceback, using the last

pr-preview/pr-1142/_sources/library/hmac.rst.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ cannot be used with HMAC.
5050
.. versionadded:: 3.7
5151

5252

53-
An HMAC object has the following methods:
53+
.. class:: HMAC
54+
55+
An HMAC object has the following methods:
5456

5557
.. method:: HMAC.update(msg)
5658

pr-preview/pr-1142/_sources/library/shutil.rst.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ Directory and files operations
8383
copy the file more efficiently. See
8484
:ref:`shutil-platform-dependent-efficient-copy-operations` section.
8585

86+
.. exception:: SpecialFileError
87+
88+
This exception is raised when :func:`copyfile` or :func:`copytree` attempt
89+
to copy a named pipe.
90+
91+
.. versionadded:: 2.7
92+
8693
.. exception:: SameFileError
8794

8895
This exception is raised if source and destination in :func:`copyfile`

pr-preview/pr-1142/_sources/library/unittest.rst.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2469,6 +2469,10 @@ instead of as an error.
24692469
setUpModule and tearDownModule
24702470
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24712471

2472+
.. function:: setUpModule
2473+
tearDownModule
2474+
:no-typesetting:
2475+
24722476
These should be implemented as functions::
24732477

24742478
def setUpModule():

pr-preview/pr-1142/_sources/library/venv.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ It also creates a :file:`bin` (or :file:`Scripts` on Windows) subdirectory
7575
containing a copy or symlink of the Python executable
7676
(as appropriate for the platform or arguments used at environment creation time).
7777
It also creates a :file:`lib/pythonX.Y/site-packages` subdirectory
78-
(on Windows, this is :file:`Lib\site-packages`).
78+
(on Windows, this is :file:`Lib\\site-packages`).
7979
If an existing directory is specified, it will be re-used.
8080

8181
.. versionchanged:: 3.5

pr-preview/pr-1142/_sources/library/xml.sax.handler.rst.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ events in the input document:
248248

249249
The *name* parameter contains the raw XML 1.0 name of the element type as a
250250
string and the *attrs* parameter holds an object of the
251-
:class:`~xml.sax.xmlreader.Attributes`
252-
interface (see :ref:`attributes-objects`) containing the attributes of
251+
:ref:`Attributes <attributes-objects>` interface containing the attributes of
253252
the element. The object passed as *attrs* may be re-used by the parser; holding
254253
on to a reference to it is not a reliable way to keep a copy of the attributes.
255254
To keep a copy of the attributes, use the :meth:`copy` method of the *attrs*
@@ -271,8 +270,7 @@ events in the input document:
271270
The *name* parameter contains the name of the element type as a ``(uri,
272271
localname)`` tuple, the *qname* parameter contains the raw XML 1.0 name used in
273272
the source document, and the *attrs* parameter holds an instance of the
274-
:class:`~xml.sax.xmlreader.AttributesNS` interface (see
275-
:ref:`attributes-ns-objects`)
273+
:ref:`AttributesNS <attributes-ns-objects>` interface
276274
containing the attributes of the element. If no namespace is associated with
277275
the element, the *uri* component of *name* will be ``None``. The object passed
278276
as *attrs* may be re-used by the parser; holding on to a reference to it is not

0 commit comments

Comments
 (0)