Steven D'Aprano wrote:
As for why None, True and False are treated differently than built-ins, if I remember the reason why, it is because they are considered fundamental to the inner workings of Python, unlike mere builtins like len, map, etc. and therefore should be protected.
It's probably more to permit optimisation. Treating them as constants avoids a name lookup every time they're used. -- Greg -- http://mail.python.org/mailman/listinfo/python-list