mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
[3.12] gh-120345: Fix incorrect use of the :class: role with the "()" suffix (GH-120347) (GH-120412)
* Remove "()" when refer to a class as a type.
* Use :func: when refer to a callable.
* Fix reference to the datetime.astimezone() method.
(cherry picked from commit 92c9c6ae14
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
ab30934365
commit
319233f137
7 changed files with 9 additions and 9 deletions
|
@ -293,7 +293,7 @@ Many data structure needs can be met with the built-in list type. However,
|
|||
sometimes there is a need for alternative implementations with different
|
||||
performance trade-offs.
|
||||
|
||||
The :mod:`array` module provides an :class:`~array.array()` object that is like
|
||||
The :mod:`array` module provides an :class:`~array.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
|
||||
|
@ -306,7 +306,7 @@ lists of Python int objects::
|
|||
>>> a[1:3]
|
||||
array('H', [10, 700])
|
||||
|
||||
The :mod:`collections` module provides a :class:`~collections.deque()` object
|
||||
The :mod:`collections` module provides a :class:`~collections.deque` object
|
||||
that is like a list with faster appends and pops from the left side but slower
|
||||
lookups in the middle. These objects are well suited for implementing queues
|
||||
and breadth first tree searches::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue