summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-07-05 09:16:10 (GMT)
committerGitHub <noreply@github.com>2022-07-05 09:16:10 (GMT)
commit3440d197a55800ecceea3e115e44b4262411359c (patch)
tree8b2d257a5e24646c798b91a8f618e76b835d2621 /Doc/extending
parent2b8ed4d3d4741811da31fc774a202d535755c0a9 (diff)
downloadcpython-3440d197a55800ecceea3e115e44b4262411359c.zip
cpython-3440d197a55800ecceea3e115e44b4262411359c.tar.gz
cpython-3440d197a55800ecceea3e115e44b4262411359c.tar.bz2
Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/building.rst2
-rw-r--r--Doc/extending/newtypes.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/Doc/extending/building.rst b/Doc/extending/building.rst
index 69dffbd..5381707 100644
--- a/Doc/extending/building.rst
+++ b/Doc/extending/building.rst
@@ -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
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index f75bee9..c7c434e 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -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)