[issue38099] __dict__ attribute is incorrectly stated to be read-only

Steven D'Aprano report at bugs.python.org
Wed Sep 11 05:02:34 EDT 2019


Steven D'Aprano <steve+python at pearwood.info> added the comment:

Oh, another point... 

Python is a little more complicated than some other languages, like Java, because Python classes (types) are themselves instances (objects) of yet another class (the so called "metaclass"). Ultimately, all classes are instances of the special metaclass called "type".

So all instances are objects, and all classes are also objects.

This is really powerful and useful, but it does sometimes make it hard to talk about things :-)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38099>
_______________________________________


More information about the Python-bugs-list mailing list