Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

> What's the plan for the existing functions `math.gcd` and `math.factorial`?

I think they should eventually get deprecated, but with long term of 
deprecation. Deprecation warning should be added only when imath versions are 
already available in older Python versions.

But they can be also kept as pure aliases for very long time.

> Does PEP 399 apply here?

There were no Python implementations when these functions was in the math 
module. But there are Python implementations for all these functions (used in 
tests or as predecessors), so it is not hard to add them in the stdlib. Easier 
that to implement math.sin() on Python from scratch.

> Should `imath.isqrt` be renamed to `imath.sqrt`?

I considered this idea and do not have answer.

> What's the actual benefit of this separation?

Currently math becomes a mix of very different functions. Separation will help 
to keep it simpler (from user and implementation sides). It also adds a place 
for landing new integer specific functions which are too specific to add them 
into the math module or into the int class.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37132>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to