Skip to content

Commit 8c4d8e4

Browse files
committed
coerce->conversion, typo
1 parent 8177f04 commit 8c4d8e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,13 @@ the standard library.
182182
====================== ================== =====================================
183183
``abs(num)`` ``__abs__`` Absolute value of ``num``
184184
``num + num2`` ``__add__`` Addition
185-
``bool(num)`` ``__bool__`` Boolean coercion
185+
``bool(num)`` ``__bool__`` Boolean conversion
186186
``num == num2`` ``__eq__`` Equality
187-
``float(num)`` ``__float__`` Float coercion
187+
``float(num)`` ``__float__`` Float conversion
188188
``num // num2`` ``__floordiv__`` Integer division
189189
``num >= num2`` ``__ge__`` Greater or equal
190190
``num > num2`` ``__gt__`` Greater than
191-
``int(num)`` ``__int__`` Integer coercion
191+
``int(num)`` ``__int__`` Integer conversion
192192
``num <= num2`` ``__le__`` Less or equal
193193
``num < num2`` ``__lt__`` Less than
194194
``num % num2`` ``__mod__`` Modulus
@@ -199,7 +199,7 @@ the standard library.
199199
``num ** num2`` ``__pow__`` Power
200200
``round(num)`` ``__round__`` Round
201201
``num.__sizeof__()`` ``__sizeof__`` Bytes for internal representation
202-
``str(num)`` ``__str__`` String coercion
202+
``str(num)`` ``__str__`` String conversion
203203
``num - num2`` ``__sub__`` Subtraction
204204
``num / num2`` ``__truediv__`` Float division
205205
``math.trunc(num)`` ``__trunc__`` Truncation
@@ -758,7 +758,7 @@ In the default namespace you have access to various callables:
758758
``exec(source, globals=None, locals=None)`` Run ``source`` (statement string or result of ``compile``) with globals and locals
759759
``exit(code)`` Exit Python interpreter and return code
760760
``filter([function], seq)`` Return iterator of items where ``function(item)`` is truthy (or ``item`` is truthy if ``function`` is missing)
761-
``float(x)`` Coerce string or number to float (call ``x.__float__()``)
761+
``float(x)`` Convert string or number to float (call ``x.__float__()``)
762762
``format(obj, fmt)`` Format protocol (call ``obj.__format__(fmt)``)
763763
``frozenset([seq])`` Create ``frozenset`` from ``seq`` (empty if missing)
764764
``getattr(obj, attr)`` Get attribute from ``obj`` (``obj.attr``)
@@ -1126,7 +1126,7 @@ and parameters of the function::
11261126

11271127
We can create anonymous functions using the ``lambda`` statement. Because they
11281128
only allow an expression following the colon, it is somewhat crippled in functionality.
1129-
The are common as a ``key`` argument to ``sorted``, ``min``, or ``max``::
1129+
They are commonly used as a ``key`` argument to ``sorted``, ``min``, or ``max``::
11301130

11311131
>>> add = lambda x, y: x + y
11321132
>>> add(4, 5)

0 commit comments

Comments
 (0)