mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-120345: Fix incorrect use of the :class: role with the "()" suffix (GH-120347)
* Remove "()" when refer to a class as a type. * Use :func: when refer to a callable. * Fix reference to the datetime.astimezone() method.
This commit is contained in:
parent
42b25dd61f
commit
92c9c6ae14
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