[Python-ideas] Add the imath module

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Jul 13 19:09:35 EDT 2018


Danilo J. S. Bellini wrote:
> If we have a fast and exact primality test up to 2**64,
> a signature like this would help:
> 
> def is_prime(n, probabilistic=False):

Two separate functions would be better, by the "no constant
boolean parameters" rule.

-- 
Greg


More information about the Python-ideas mailing list