[Python-Dev] PEP 485: math.isclose() (original) (raw)

Tal Einat taleinat at gmail.com
Mon May 25 08:39:07 CEST 2015


On Mon, May 25, 2015 at 7:53 AM, Chris Barker <chris.barker at noaa.gov> wrote:

I don't think I have permissions to comment on the issue,so I'm posting here. If there is a way for me to post to the issue, someone let me know...

You just need to register on the issue tracker. On bugs.python.org, there is a "register" link under the "User" section on the navigation bar.

In the issue (http://bugs.python.org/issue24270) Tal wrote

[...] """ Should we just leave things as they are and remove mention of complex values from the PEP (it isn't mentioned in the docs)? """ I'll update the PEP.

If we're going to add a separate complex version of isclose() to the cmath module, then you should probably leave the PEP as it is.

While we're on the subject of the PEP, is there a reason that the cmath version should accept complex values for the tolerances? I'd expect it to accept only floats, and I think that allowing complex values would be more confusing than useful.



More information about the Python-Dev mailing list