Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
>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(). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42102> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com