[New-bugs-announce] [issue36433] Unhelpful error message in classmethoddescr_call()

Inada Naoki report at bugs.python.org
Tue Mar 26 04:11:55 EDT 2019


New submission from Inada Naoki <songofacandy at gmail.com>:

>>> desc = dict.__dict__['fromkeys']
>>> desc(int, [])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: descriptor 'fromkeys' requires a subtype of 'dict' but received 'type

`'type` should be `'int'`.

----------
components: Interpreter Core
messages: 338860
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: Unhelpful error message in classmethoddescr_call()
versions: Python 3.7, Python 3.8

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


More information about the New-bugs-announce mailing list