On Tue, Oct 26, 2021, 7:20 PM Chris Angelico > The truth is that there is no value that can be a truly universal > representation of absence, so it *always* has to be specific to each API. >
That's a fact about Python rather than a fact of programming in general. For example, R has a NULL that is "even more missing" than it's NA or NaN. For example: # operation on NULL Vector v1 <- c(NULL, NULL, NULL) str(v1) # NULL In contrast, a vector of NA would still have 3 elements (or however many). NA is basically Python None, NULL is like a true missing that cannot be anything else. I'm not saying Python should add this, but it is possible to do.
_______________________________________________ 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/YFYXRO4FNSWY3CMUZ42RLRQ7NZHCYOHE/ Code of Conduct: http://python.org/psf/codeofconduct/