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 serhiy.storchaka
Recipients BTaskaya, gvanrossum, hauntsaninja, kj, levkivskyi, serhiy.storchaka
Date 2020-11-16.20:24:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605558248.4.0.12562796394.issue42102@roundup.psfhosted.org>
In-reply-to
Content
From implementation perspective it is not easy at all. You will need to create a special class with methods __call__ and __getitem__ (and several other methods and attributes, like __repr__, __reduce__, __name__, __doc__, __module__, __text_signature__, etc) and make builtins.callable an instance instead of just built-in function. It can also affect performance of callable().
History
Date User Action Args
2020-11-16 20:24:08serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, levkivskyi, BTaskaya, hauntsaninja, kj
2020-11-16 20:24:08serhiy.storchakasetmessageid: <1605558248.4.0.12562796394.issue42102@roundup.psfhosted.org>
2020-11-16 20:24:08serhiy.storchakalinkissue42102 messages
2020-11-16 20:24:08serhiy.storchakacreate