diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-07-05 09:16:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 09:16:10 (GMT) |
commit | 3440d197a55800ecceea3e115e44b4262411359c (patch) | |
tree | 8b2d257a5e24646c798b91a8f618e76b835d2621 /Doc/reference | |
parent | 2b8ed4d3d4741811da31fc774a202d535755c0a9 (diff) | |
download | cpython-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/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 | ||||
-rw-r--r-- | Doc/reference/import.rst | 2 | ||||
-rw-r--r-- | Doc/reference/lexical_analysis.rst | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 8ac9a8c..758f3ae 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1270,7 +1270,7 @@ Basic customization Typical implementations create a new instance of the class by invoking the superclass's :meth:`__new__` method using ``super().__new__(cls[, ...])`` - with appropriate arguments and then modifying the newly-created instance + with appropriate arguments and then modifying the newly created instance as necessary before returning it. If :meth:`__new__` is invoked during object construction and it returns an @@ -1560,7 +1560,7 @@ Basic customization predictable between repeated invocations of Python. This is intended to provide protection against a denial-of-service caused - by carefully-chosen inputs that exploit the worst case performance of a + by carefully chosen inputs that exploit the worst case performance of a dict insertion, O(n\ :sup:`2`) complexity. See http://www.ocert.org/advisories/ocert-2011-003.html for details. diff --git a/Doc/reference/import.rst b/Doc/reference/import.rst index 3a41403..29d402e 100644 --- a/Doc/reference/import.rst +++ b/Doc/reference/import.rst @@ -541,7 +541,7 @@ the module. .. attribute:: __name__ - The ``__name__`` attribute must be set to the fully-qualified name of + The ``__name__`` attribute must be set to the fully qualified name of the module. This name is used to uniquely identify the module in the import system. diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index 1cf0a5b..b76b468 100644 --- a/Doc/reference/lexical_analysis.rst +++ b/Doc/reference/lexical_analysis.rst @@ -757,7 +757,7 @@ the final value of the whole string. Top-level format specifiers may include nested replacement fields. These nested fields may include their own conversion fields and :ref:`format specifiers -<formatspec>`, but may not include more deeply-nested replacement fields. The +<formatspec>`, but may not include more deeply nested replacement fields. The :ref:`format specifier mini-language <formatspec>` is the same as that used by the :meth:`str.format` method. |