Re: [Python-ideas] Make None a subclass of int [alternative to iNaN]

2018-11-27 Thread Abe Dillon
I'm -1 on this idea. None is and should remain domain-independent. Specific domains may require additional special values like "NaN", "+/-inf", etc. for floating point math, in which case it makes more sense to define a domain-specific special value than compromise the independence of None. Doing s

Re: [Python-ideas] Make None a subclass of int [alternative to iNaN]

2018-09-30 Thread Serhiy Storchaka
30.09.18 09:05, Ken Hilton пише: Reading the iNaN discussion, most of the opposition seems to be that adding iNaN would add a new special value to integers and therefore add new complexity. I propose, instead, that we make None a subclass of int (or even a certain value of int) to represent i

[Python-ideas] Make None a subclass of int [alternative to iNaN]

2018-09-29 Thread Ken Hilton
Hi all, Reading the iNaN discussion, most of the opposition seems to be that adding iNaN would add a new special value to integers and therefore add new complexity. I propose, instead, that we make None a subclass of int (or even a certain value of int) to represent iNaN. Therefore: >>> None