On 27.08.2021 09:58, Serhiy Storchaka wrote:
> 26.08.21 12:05, Marc-Andre Lemburg пише:
>> Oh, good point. I was under the impression that NAN is handled
>> as a singleton.
>>
>> Perhaps this should be changed to make to make it easier to
>> detect NANs ?!
> 
> Even ignoring a NaN payload, there are many different NaNs of different
> types. For example, Decimal('nan') cannot be the same as float('nan').

Right, it's a much larger problem than I thought :-)

cmath has its own NANs as well.

Too many NANs... it's probably better to stick with NumPy for handling
data sets with embedded NANs. It provides consistent handling for NANs
across integers, floats, complex and even date/time values (as NATs).

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Aug 27 2021)
>>> Python Projects, Coaching and Support ...    https://www.egenix.com/
>>> Python Product Development ...        https://consulting.egenix.com/
________________________________________________________________________

::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               https://www.egenix.com/company/contact/
                     https://www.malemburg.com/

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/RU6L6J7JXVLO42PHIEYPHWNGXRWKMCCK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to