I think the extra 9 characters of "_probable" are worth the extra accuracy.

Dont teach people to lie in their function names. It's a bad example.
and if you really want to lie, just

from imath import is_probably_prime as is_prime

2018-07-13 14:44 GMT+02:00 Jeroen Demeyer <j.deme...@ugent.be>:
> On 2018-07-13 14:11, Steven D'Aprano wrote:
>>
>> What it *actually* does is:
>>
>>
>> is_almost_certainly_prime_except_for_a_ludicrously_microscopic_chance_of_error_thousands_of_times_less_likely_than_a_stray_cosmic_ray_flipping_a_bit_in_memory_and_causing_the_wrong_result_to_be_returned()
>
>
> That's just a long variant of is_probable_prime()
>
>> If your bank is satisfied with "mere probable prime number" to transfer
>> billions of dollars around the world, then I'm sure that the users of
>> Python's std library should be too.
>
>
> That's besides the point. I agree that probable primes are good enough, just
> don't call them "prime".
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to