[Python-ideas] PEP 485: A Function for testing approximate equality (original) (raw)
Chris Barker chris.barker at noaa.gov
Thu Feb 5 22:03:52 CET 2015
- Previous message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Next message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Feb 5, 2015 at 12:14 PM, Marco Buttu <marco.buttu at gmail.com> wrote:
On 05/02/2015 18:56, Guido van Rossum wrote:
- Which module should this go into? (I think math, but I don't think you state it.)
In that case it should be isclose(), for consistency with the other math.is* functions. But wherever we put it, I would suggest to change to isclose() because in the standard library we usually have issomething() instead of issomething().
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.
-Chris
-- Marco Buttu INAF-Osservatorio Astronomico di Cagliari Via della Scienza n. 5, 09047 Selargius (CA) Phone: 070 711 80 217 Email: mbuttu at oa-cagliari.inaf.it
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/43da9aeb/attachment.html>
- Previous message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Next message: [Python-ideas] PEP 485: A Function for testing approximate equality
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]