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

Alexander Belopolsky alexander.belopolsky at gmail.com
Fri Jan 23 22:56:22 CET 2015


On Fri, Jan 23, 2015 at 4:30 PM, 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?
>

Many style guides recommend against using _ to separate abbreviated words
in variable names, so either relative_/absolute_tolerance or
reltol/abstol.  OTOH, I don't  see any problem with numpy's atol/rtol.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150123/69cd4568/attachment.html>


More information about the Python-ideas mailing list