New submission from Inada Naoki <songofaca...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36433>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to