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

Chris Barker chris.barker at noaa.gov
Thu Feb 5 22:59:42 CET 2015


On Thu, Feb 5, 2015 at 1:33 PM, Ethan Furman <ethan at stoneleaf.us> wrote:


> > I was going with PEP8: "Function names should be lowercase, with words
> separated by underscores as necessary to improve
> > readability." But consistency with other functions in the lib (or
> specifically in the same module) is probably better, yes.
>
> PEP8 on consistency [1] (second paragraph):
>
>    A style guide is about consistency. Consistency with this style guide is
>    important. Consistency within a project is more important. Consistency
>    within one module or function is most important.
>

Exactly -- so isclose() is the way to go.

-Chris





> [1]  https://www.python.org/dev/peps/pep-0008/#id10
>
> --
> ~Ethan~
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>



-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150205/b6ae46b6/attachment-0001.html>


More information about the Python-ideas mailing list