[Python-ideas] PEP 485: A Function for testing approximate equality

Chris Angelico rosuav at gmail.com
Fri Jan 23 22:55:33 CET 2015


On Sat, Jan 24, 2015 at 8:30 AM, Nathaniel Smith <njs at pobox.com> wrote:
> 1) kwarg names: "tol" and "abs_tol" versus "atol", "rtol". Numpy's
> names seem fine to me, but if you want the longer ones then probably
> "rel_tol", "abs_tol" would be better?

Longer names preferable. It was quite a long way into the original
thread before I understood what "atol" meant - my brain kept wanting
it to be related to the atoi family of functions from C (ASCII to
Integer (atoi), ASCII to Long (atol), etc, converting strings to
integers).

ChrisA


More information about the Python-ideas mailing list