@@ -32,19 +32,6 @@ Glossary
3232 One of the two flavors of classes in earlier Python versions. Since
3333 Python 3.0, there are no classic classes anymore.
3434
35- coercion
36- The implicit conversion of an instance of one type to another during an
37- operation which involves two arguments of the same type. For example,
38- ``int(3.15) `` converts the floating point number to the integer ``3 ``, but
39- in ``3+4.5 ``, each argument is of a different type (one int, one float),
40- and both must be converted to the same type before they can be added or it
41- will raise a ``TypeError ``. Coercion between two operands can be
42- performed with the ``coerce `` builtin function; thus, ``3+4.5 `` is
43- equivalent to calling ``operator.add(*coerce(3, 4.5)) `` and results in
44- ``operator.add(3.0, 4.5) ``. Without coercion, all arguments of even
45- compatible types would have to be normalized to the same value by the
46- programmer, e.g., ``float(3)+4.5 `` rather than just ``3+4.5 ``.
47-
4835 complex number
4936 An extension of the familiar real number system in which all numbers are
5037 expressed as a sum of a real part and an imaginary part. Imaginary
@@ -168,14 +155,14 @@ Glossary
168155 integer division
169156 Mathematical division discarding any remainder. For example, the
170157 expression ``11/4 `` currently evaluates to ``2 `` in contrast to the
171- ``2.75 `` returned by float division. Also called *floor division *.
172- When dividing two integers the outcome will always be another integer
173- (having the floor function applied to it). However, if one of the operands
174- is another numeric type (such as a :class: ` float `), the result will be
175- coerced (see :term: ` coercion `) to a common type. For example, an integer
176- divided by a float will result in a float value, possibly with a decimal
177- fraction. Integer division can be forced by using the ``// `` operator
178- instead of the `` / `` operator. See also :term: `__future__ `.
158+ ``2.75 `` returned by float division. Also called *floor division *. When
159+ dividing two integers the outcome will always be another integer (having
160+ the floor function applied to it). However, if the operands types are
161+ different, one of them will be converted to the other's type. For
162+ example, an integer divided by a float will result in a float value,
163+ possibly with a decimal fraction. Integer division can be forced by using
164+ the `` // `` operator instead of the ``/ `` operator. See also
165+ :term: `__future__ `.
179166
180167 interactive
181168 Python has an interactive interpreter which means that you can try out
0 commit comments