[issue45104] Error in __new__ docs

Raymond Hettinger report at bugs.python.org
Tue Sep 7 02:00:42 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

I would be happy with just "instance of cls".  Elsewhere in the docs, that phrasing almost always means "instance of a cls or instance of a subclass of cls".  Also, it is consistent with the meaning of isinstance(inst, cls) unless overridden by ABC logic.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list