summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorƁukasz Langa <lukasz@langa.pl>2022-07-05 12:30:37 (GMT)
committerGitHub <noreply@github.com>2022-07-05 12:30:37 (GMT)
commit6e47020d31c837f494ee500efa9b557bb83b87d7 (patch)
tree6e9b200e9e4c85365c93e836d4706c74b3b324fb /Doc/extending
parent3472f3b6e50683a76a6a5ae745b14f4588e632aa (diff)
downloadcpython-6e47020d31c837f494ee500efa9b557bb83b87d7.zip
cpython-6e47020d31c837f494ee500efa9b557bb83b87d7.tar.gz
cpython-6e47020d31c837f494ee500efa9b557bb83b87d7.tar.bz2
[3.10] Docs: remove redundant "adverb-adjective" hyphens from compound modifiers (GH-94551) (GH-94558)
Discussion: https://discuss.python.org/t/slight-grammar-fix-throughout-adverbs-dont-need-hyphen/17021 (cherry picked from commit 3440d197a55800ecceea3e115e44b4262411359c) Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
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)