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
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
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