mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-123492: Remove unnecessary :func:
parentheses (#123493)
This commit is contained in:
parent
8aaf7525ab
commit
103a0470e3
78 changed files with 154 additions and 154 deletions
|
@ -513,7 +513,7 @@ were defined.
|
|||
|
||||
Descriptors are a powerful, general purpose protocol. They are the mechanism
|
||||
behind properties, methods, static methods, class methods, and
|
||||
:func:`super()`. They are used throughout Python itself. Descriptors
|
||||
:func:`super`. They are used throughout Python itself. Descriptors
|
||||
simplify the underlying C code and offer a flexible set of new tools for
|
||||
everyday Python programs.
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ Enum HOWTO
|
|||
.. currentmodule:: enum
|
||||
|
||||
An :class:`Enum` is a set of symbolic names bound to unique values. They are
|
||||
similar to global variables, but they offer a more useful :func:`repr()`,
|
||||
similar to global variables, but they offer a more useful :func:`repr`,
|
||||
grouping, type-safety, and a few other features.
|
||||
|
||||
They are most useful when you have a variable that can take one of a limited
|
||||
|
@ -167,7 +167,7 @@ And a function to display the chores for a given day::
|
|||
answer SO questions
|
||||
|
||||
In cases where the actual values of the members do not matter, you can save
|
||||
yourself some work and use :func:`auto()` for the values::
|
||||
yourself some work and use :func:`auto` for the values::
|
||||
|
||||
>>> from enum import auto
|
||||
>>> class Weekday(Flag):
|
||||
|
|
|
@ -307,7 +307,7 @@ Available static markers
|
|||
.. object:: gc__start(int generation)
|
||||
|
||||
Fires when the Python interpreter starts a garbage collection cycle.
|
||||
``arg0`` is the generation to scan, like :func:`gc.collect()`.
|
||||
``arg0`` is the generation to scan, like :func:`gc.collect`.
|
||||
|
||||
.. object:: gc__done(long collected)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue