This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum, hauntsaninja, kj, levkivskyi, serhiy.storchaka
Date 2020-11-16.05:29:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605504560.43.0.568230226978.issue42102@roundup.psfhosted.org>
In-reply-to
Content
I'd like to pursue this for real; other issues for callable have popped up, https://bugs.python.org/issue42195 and https://bugs.python.org/issue40494 (https://bugs.python.org/issue40398 is also related but already fixed).

From 42195 I learn that __args__ ought to be hashable. I would prefer it to still be structured, e.g. callable[[int, str], float].__args__ should be ((int, str), float).

This means we have to change typing.Callable and collections.abc.Callable as well (the latter may share code with builtins.callable, but typing.Callable should probably stay separate, but returning the same structure).
History
Date User Action Args
2020-11-16 05:29:20gvanrossumsetrecipients: + gvanrossum, serhiy.storchaka, levkivskyi, hauntsaninja, kj
2020-11-16 05:29:20gvanrossumsetmessageid: <1605504560.43.0.568230226978.issue42102@roundup.psfhosted.org>
2020-11-16 05:29:20gvanrossumlinkissue42102 messages
2020-11-16 05:29:20gvanrossumcreate