[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable object

ppperry report at bugs.python.org
Mon Jul 30 19:55:37 EDT 2018


ppperry <mapreader at olum.org> added the comment:

Same thing happens for other objects, like `type(sys._getframe(0)).__new__(type(sys._getframe_))`, and presumably any object that one cannot instantiate by calling

----------
title: Nonsensical exception message when calling `__new__` on some sys objects -> Nonsensical exception message when calling `__new__` on non-instaniable object

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


More information about the Python-bugs-list mailing list