[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-27 Thread Inada Naoki
Inada Naoki added the comment: See https://github.com/python/cpython/pull/11930 I found this while I wrote tests about error messages. -- ___ Python tracker ___

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-27 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I am curious, how did you find out about this bug? Do you have a concrete use case for directly calling an instance of classmethod_descriptor? Typically, one would write dict.fromkeys(...) instead of dict.__dict__['fromkeys'](dict, ...). -- nosy:

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 03440850e7266aa7fd531c7f281a3fdcf17f90a4 by Miss Islington (bot) in branch '3.7': bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556) https://github.com/python/cpython/commit/03440850e7266aa7fd531c7f281a3fdcf17f90a4

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +12503 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread miss-islington
miss-islington added the comment: New changeset 871309c775fd4d72048bfaa31affd54f9934f7dd by Miss Islington (bot) (Inada Naoki) in branch 'master': bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +12502 stage: -> patch review ___ Python tracker ___ ___

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: More confusing error message: >>> desc(1, []) Traceback (most recent call last): File "", line 1, in TypeError: descriptor 'fromkeys' requires a type but received a 'dict' -- ___ Python tracker

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36433] Unhelpful error message in classmethoddescr_call()

2019-03-26 Thread Inada Naoki
New submission from Inada Naoki : >>> desc = dict.__dict__['fromkeys'] >>> desc(int, []) Traceback (most recent call last): File "", line 1, in TypeError: descriptor 'fromkeys' requires a subtype of 'dict' but received 'type `'type` should be `'int'`. -- components: Interpreter