On Sat, Sep 29, 2018 at 09:43:42PM +0100, Oscar Benjamin wrote: > On Sat, 29 Sep 2018 at 19:38, Steve Barnes <gadgetst...@live.co.uk> wrote:
> > > I converted to int because I needed a whole number, this was intended to > > represent some more complex process where a value is converted to a > > whole number down in the depths of the processing. > > Your requirement to have a whole number cannot meaningfully be > satisfied if your input is nan so an exception is the most useful > result. Not to Steve it isn't. Be careful about making value judgements like that: Steve is asking for an integer NAN because for *him* an integer NAN is more useful than an exception. You shouldn't tell him that he is wrong, unless you know his use-case and his code, which you don't. -- Steve _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/