24 Jul
2018
24 Jul
'18
1:49 p.m.
Here's another way that None is special. ===
NoneType = type(None)
class myNoneType(NoneType): pass ... Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: type 'NoneType' is not an acceptable base type ===
For more information see https://stackoverflow.com/questions/10061752/which-classes-cannot-be-subclas... Related are https://stackoverflow.com/questions/2172189/why-i-cant-extend-bool-in-python... https://stackoverflow.com/questions/2825364/final-classes-in-python-3-x-some... -- Jonathan