]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct "inplace" with "in-place" (GH-10480)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Apr 2019 09:21:38 +0000 (02:21 -0700)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2019 09:21:38 +0000 (02:21 -0700)
(cherry picked from commit f4efa312d14bc792f59514c5696e29041e05deca)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
Doc/c-api/typeobj.rst
Doc/library/operator.rst

index 6cbcc273c1f153b5260d75e4d10654a4ece5dffe..532508ee72281275cc2adf810ff2e6691e082b39 100644 (file)
@@ -1256,7 +1256,7 @@ Sequence Object Structures
    signature.  It should modify its first operand, and return it.  This slot
    may be left to *NULL*, in this case :c:func:`!PySequence_InPlaceConcat`
    will fall back to :c:func:`PySequence_Concat`.  It is also used by the
-   augmented assignment ``+=``, after trying numeric inplace addition
+   augmented assignment ``+=``, after trying numeric in-place addition
    via the :c:member:`~PyNumberMethods.nb_inplace_add` slot.
 
 .. c:member:: ssizeargfunc PySequenceMethods.sq_inplace_repeat
@@ -1265,7 +1265,7 @@ Sequence Object Structures
    signature.  It should modify its first operand, and return it.  This slot
    may be left to *NULL*, in this case :c:func:`!PySequence_InPlaceRepeat`
    will fall back to :c:func:`PySequence_Repeat`.  It is also used by the
-   augmented assignment ``*=``, after trying numeric inplace multiplication
+   augmented assignment ``*=``, after trying numeric in-place multiplication
    via the :c:member:`~PyNumberMethods.nb_inplace_multiply` slot.
 
 
index e4d6d05a23a7c40f8afab59d7c821e4a6850f3e6..11152f6a70b2bb7964b780d80a06bce853c94a07 100644 (file)
@@ -438,8 +438,8 @@ Python syntax and the functions in the :mod:`operator` module.
 | Ordering              | ``a > b``               | ``gt(a, b)``                          |
 +-----------------------+-------------------------+---------------------------------------+
 
-Inplace Operators
------------------
+In-place Operators
+------------------
 
 Many operations have an "in-place" version.  Listed below are functions
 providing a more primitive access to in-place operators than the usual syntax
@@ -462,7 +462,7 @@ value is computed, but not assigned back to the input variable:
 >>> a
 'hello'
 
-For mutable targets such as lists and dictionaries, the inplace method
+For mutable targets such as lists and dictionaries, the in-place method
 will perform the update, so no subsequent assignment is necessary:
 
 >>> s = ['h', 'e', 'l', 'l', 'o']