Skip to content

Commit ad707af

Browse files
committed
New namespace avoid name clash with existing math's stuff
1 parent 2f42063 commit ad707af

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

peps/pep-0791.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ and issue `python/cpython#81313
9797
* ``fibonacci()`` --- `Fibonacci sequence
9898
<https://en.wikipedia.org/wiki/Fibonacci_sequence>`_.
9999

100+
Separated namespace eliminates possible name clash with existing
101+
:external+py3.14:mod:`math`'s module functions. For example, possible names
102+
``ceil_div()`` or ``ceildiv()`` for integer ceiling division will interfere
103+
with the :external+py3.14:func:`~math.ceil` (which is for :class:`float`'s and
104+
*sometimes* does right things for integer division, as an accident --- but
105+
`usually not <https://discuss.python.org/t/91269/6>`_).
106+
100107

101108
Rationale
102109
=========

0 commit comments

Comments
 (0)