[Python-ideas] PEP 485: A Function for testing approximate equality
Nick Coghlan
ncoghlan at gmail.com
Sun Feb 15 11:10:01 CET 2015
On 15 February 2015 at 02:10, Chris Barker - NOAA Federal
<chris.barker at noaa.gov> wrote:
>
> On Feb 14, 2015, at 5:26 AM, Victor Stinner <victor.stinner at gmail.com>
> wrote:
>
> Do you propose a builtin function? I would prefer to put it in the math
> module.
>
> Yes, the math module is the proposed place for it.
>
> may add a new method to unittest.TestCase? It would show all parameters on
> error. .assertTrue(isclose(...)) doesn't help on error.
>
> Good point -- I'm not much OS a unittest user -- if someone wants to a
> unittest method, I think that would be fine.
>
> I did originally have that in the PEP, but it got distracting, so Guido
> suggested it be removed.
I don't think it needs to be in the PEP - assuming the PEP gets
accepted, we can do a follow-up RFE for unittest.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list