mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551) (GH-94557)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
(cherry picked from commit 3440d197a5
)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
This commit is contained in:
parent
99a06685d4
commit
77bf973930
71 changed files with 118 additions and 118 deletions
|
@ -17,7 +17,7 @@ The initialization function has the signature:
|
|||
|
||||
.. c:function:: PyObject* PyInit_modulename(void)
|
||||
|
||||
It returns either a fully-initialized module, or a :c:type:`PyModuleDef`
|
||||
It returns either a fully initialized module, or a :c:type:`PyModuleDef`
|
||||
instance. See :ref:`initializing-modules` for details.
|
||||
|
||||
.. highlight:: python
|
||||
|
|
|
@ -175,7 +175,7 @@ example::
|
|||
}
|
||||
|
||||
If no :c:member:`~PyTypeObject.tp_repr` handler is specified, the interpreter will supply a
|
||||
representation that uses the type's :c:member:`~PyTypeObject.tp_name` and a uniquely-identifying
|
||||
representation that uses the type's :c:member:`~PyTypeObject.tp_name` and a uniquely identifying
|
||||
value for the object.
|
||||
|
||||
The :c:member:`~PyTypeObject.tp_str` handler is to :func:`str` what the :c:member:`~PyTypeObject.tp_repr` handler
|
||||
|
@ -589,7 +589,7 @@ with the required field::
|
|||
PyObject *weakreflist; /* List of weak references */
|
||||
} TrivialObject;
|
||||
|
||||
And the corresponding member in the statically-declared type object::
|
||||
And the corresponding member in the statically declared type object::
|
||||
|
||||
static PyTypeObject TrivialType = {
|
||||
PyVarObject_HEAD_INIT(NULL, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue