@@ -182,13 +182,13 @@ the standard library.
182
182
====================== ================== =====================================
183
183
``abs(num) `` ``__abs__ `` Absolute value of ``num ``
184
184
``num + num2 `` ``__add__ `` Addition
185
- ``bool(num) `` ``__bool__ `` Boolean coercion
185
+ ``bool(num) `` ``__bool__ `` Boolean conversion
186
186
``num == num2 `` ``__eq__ `` Equality
187
- ``float(num) `` ``__float__ `` Float coercion
187
+ ``float(num) `` ``__float__ `` Float conversion
188
188
``num // num2 `` ``__floordiv__ `` Integer division
189
189
``num >= num2 `` ``__ge__ `` Greater or equal
190
190
``num > num2 `` ``__gt__ `` Greater than
191
- ``int(num) `` ``__int__ `` Integer coercion
191
+ ``int(num) `` ``__int__ `` Integer conversion
192
192
``num <= num2 `` ``__le__ `` Less or equal
193
193
``num < num2 `` ``__lt__ `` Less than
194
194
``num % num2 `` ``__mod__ `` Modulus
@@ -199,7 +199,7 @@ the standard library.
199
199
``num ** num2 `` ``__pow__ `` Power
200
200
``round(num) `` ``__round__ `` Round
201
201
``num.__sizeof__() `` ``__sizeof__ `` Bytes for internal representation
202
- ``str(num) `` ``__str__ `` String coercion
202
+ ``str(num) `` ``__str__ `` String conversion
203
203
``num - num2 `` ``__sub__ `` Subtraction
204
204
``num / num2 `` ``__truediv__ `` Float division
205
205
``math.trunc(num) `` ``__trunc__ `` Truncation
@@ -758,7 +758,7 @@ In the default namespace you have access to various callables:
758
758
``exec(source, globals=None, locals=None) `` Run ``source `` (statement string or result of ``compile ``) with globals and locals
759
759
``exit(code) `` Exit Python interpreter and return code
760
760
``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__() ``)
762
762
``format(obj, fmt) `` Format protocol (call ``obj.__format__(fmt) ``)
763
763
``frozenset([seq]) `` Create ``frozenset `` from ``seq `` (empty if missing)
764
764
``getattr(obj, attr) `` Get attribute from ``obj `` (``obj.attr ``)
@@ -1126,7 +1126,7 @@ and parameters of the function::
1126
1126
1127
1127
We can create anonymous functions using the ``lambda `` statement. Because they
1128
1128
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 ``::
1130
1130
1131
1131
>>> add = lambda x, y: x + y
1132
1132
>>> add(4, 5)
0 commit comments