]> granicus.if.org Git - python/commitdiff
Correct "inplace" with "in-place" (GH-10480)
authorAndre Delfino <adelfino@gmail.com>
Mon, 8 Apr 2019 09:14:43 +0000 (06:14 -0300)
committerInada Naoki <songofacandy@gmail.com>
Mon, 8 Apr 2019 09:14:43 +0000 (18:14 +0900)
Doc/c-api/typeobj.rst
Doc/library/operator.rst

index f36cfe551e4cc858293e130032dffbe0d6dd0a92..0647a493303d26348bf61e6213afe00cfe271010 100644 (file)
@@ -2052,7 +2052,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
@@ -2061,7 +2061,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 250cbb6b7c07370fb3e683dad5064cdfa9c0c8c3..5d0ea7dfdd8928d4af75fb2758411f93654477f3 100644 (file)
@@ -440,8 +440,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
@@ -464,7 +464,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']