Tal Einat added the comment:

I have a question regarding complex values. The code (from Chris Barker) 
doesn't support complex values (only things that can be converted into 
doubles). However, the PEP states the following under "Non-float types":

"complex : for complex, the absolute value of the complex values will be used 
for scaling and comparison. If a complex tolerance is passed in, the absolute 
value will be used as the tolerance."

Should math.isclose() support complex values? Should an equivalent function be 
added to cmath? Should we just leave things as they are and remove mention of 
complex values from the PEP (it isn't mentioned in the docs)?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24270>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to