
On Wed, Sep 01, 2021 at 12:07:52PM -0400, David Mertz, Ph.D. wrote:
On Wed, Sep 1, 2021, 11:55 AM Christopher Barker <pythonchb@gmail.com> wrote:
Can you redefine the name, “None” in ancient Python?
I didn't show it in my earlier post, but in Python 1.0.1, you an indeed rebind the name None (much as you could True/False until 2.4 or something... I probably have the version wrong in my guess).
As late as 1.5, you could still rebind the name None.
Nonetheless, the None *object* is a singleton, and it's own type. I think the concept of NoneType was relatively late, like in the 2.x series.
There always was a NoneType, although it wasn't always called NoneType. In 1.5 and 0.9 it was called 'None', although that wasn't as confusing as you might think, because you couldn't do anything with it, it wasn't callable and had no methods. >>> type(None) <type 'None'> In 1.5 it was also available via the `types` module, under the alias NoneType. -- Steve