[Python-ideas] PEP 485: A Function for testing approximate equality (original) (raw)

Chris Barker chris.barker at noaa.gov
Fri Feb 6 01:12:30 CET 2015


On Thu, Feb 5, 2015 at 3:05 PM, Guido van Rossum <guido at python.org> wrote:

Are you sure? I don't see any special handling of sequences in its

docs or code...

The one in unittest doesn't have this feature. However there's assertApproxEqual defined locally in the test/teststatistics.py package that does.

Indeed -- it looks like I confused those two -- sorry about that.

-Chris

Since the other is only meant for local use in teststatistics.py, we should leave it alone. The one in unittest is pretty bad but widely used; deprecating it won't have any teeth.

-- --Guido van Rossum (python.org/~guido)

--

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/6b965e43/attachment.html>



More information about the Python-ideas mailing list