Message381151
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(). |
|
Date |
User |
Action |
Args |
2020-11-16 20:24:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, levkivskyi, BTaskaya, hauntsaninja, kj |
2020-11-16 20:24:08 | serhiy.storchaka | set | messageid: <1605558248.4.0.12562796394.issue42102@roundup.psfhosted.org> |
2020-11-16 20:24:08 | serhiy.storchaka | link | issue42102 messages |
2020-11-16 20:24:08 | serhiy.storchaka | create | |
|