@@ -38,7 +38,10 @@ subsection of the documentation return a float, but the
38
38
documentation doesn't say so. In the documentation for the proposed ``imath `` module the sentence "All
39
39
return values are integers." would be accurate. In a similar way we
40
40
can simplify the description of the accepted arguments for functions in both the
41
- :external+py3.14:mod: `math ` and the new module.
41
+ new module and the :external+py3.14:mod: `math `.
42
+ Which content, as in beginning, will be again related to work with "just
43
+ numbers" --- that for most people with basic education means some model of real
44
+ numbers).
42
45
43
46
Apparently, the :external+py3.14:mod: `math ` module can't serve as a catch-all place
44
47
for mathematical functions since we also have the :external+py3.14:mod: `cmath ` and
@@ -52,6 +55,14 @@ Currently the :external+py3.14:mod:`math` module code in the CPython is around
52
55
comparable with the :external+py3.14:mod: `cmath ` (1340LOC), which is *not * a
53
56
simple wrapper to the ``libm ``, as most functions in the
54
57
:external+py3.14:mod: `math ` module.
58
+ And this situation tends to be worse. When the module split `was first
59
+ proposed
60
+ <https://mail.python.org/archives/list/python-ideas@python.org/thread/YYJ5YJBJNCVXQWK5K3WSVNMPUSV56LOR/> `_
61
+ there were only two integer-related functions:
62
+ :external+py3.14:func: `~math.factorial ` and :external+py3.14:func: `~math.gcd `.
63
+ Now there are six, :external+py3.14:func: `~math.factorial ` doesn't accept
64
+ :class: `float `'s anymore and :external+py3.14:func: `~math.gcd ` changed it's
65
+ signature.
55
66
56
67
57
68
Rationale
0 commit comments