On Sat, Jan 24, 2015 at 1:35 PM, Andrew Barnert
<abarnert@yahoo.com.dmarc.invalid> wrote:
> Maybe the answer there is to have an is_close_to_0 function, instead of a parameter that's only useful if expected is 0? But then you might have, say, a comprehension where some of the expected values are 0 and some aren't, so maybe not...
>
That's a more philosophical question about API design. It's probably
worth mentioning the two options in the PEP - separate function for
"close to zero" with these args, or put it all into the one function
with those args.
ChrisA
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/