<div dir="ltr"><div>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...<br><br></div>In the issue (<a href="http://bugs.python.org/issue24270">http://bugs.python.org/issue24270</a>) Tal wrote<br><div><br>"""<br>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":<br><br>"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."<br>"""<br><br></div><div>right -- that was written before it was decided that isclose() needed to be written in C -- the python version supported that.<br><br></div><div>"""<br>Should math.isclose() support complex values? <br>"""<br>nope -- the math module is all about floats.<br><br>"""<br>Should an equivalent function be added to cmath?<br>"""<br><br></div><div>I think so -- lets see if we can do that in time for 3.5 -- but first get the float one done.<br></div><div><br>"""<br> Should we just leave things as they are and remove mention of complex values from the PEP (it isn't mentioned in the docs)?<br clear="all">"""<br></div><div>I'll update the PEP.<br><br></div><div>-Chris<br><br></div><div><br><br>-- <br><div class="gmail_signature"><br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&R            (206) 526-6959   voice<br>7600 Sand Point Way NE   (206) 526-6329   fax<br>Seattle, WA  98115       (206) 526-6317   main reception<br><br><a href="mailto:Chris.Barker@noaa.gov" target="_blank">Chris.Barker@noaa.gov</a></div>
</div></div>