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

Vadim Pushtaev report at bugs.python.org
Mon Sep 3 08:44:39 EDT 2018


Vadim Pushtaev <pushtaev.vm at gmail.com> added the comment:

Also for `curses.panel.panel`:

>>> from curses.panel import panel
>>> panel.__new__(panel)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: object.__new__(_curses_panel.panel) is not safe, use _curses_panel.panel.__new__()

----------

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


More information about the Python-bugs-list mailing list