Skip to content

Commit 8cdce7a

Browse files
committed
expand Motivation
1 parent 5d3c129 commit 8cdce7a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

peps/pep-0791.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ subsection of the documentation return a float, but the
3838
documentation doesn't say so. In the documentation for the proposed ``imath`` module the sentence "All
3939
return values are integers." would be accurate. In a similar way we
4040
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).
4245

4346
Apparently, the :external+py3.14:mod:`math` module can't serve as a catch-all place
4447
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
5255
comparable with the :external+py3.14:mod:`cmath` (1340LOC), which is *not* a
5356
simple wrapper to the ``libm``, as most functions in the
5457
: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.
5566

5667

5768
Rationale

0 commit comments

Comments
 (0)