Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

There are disadvantages of using a callable class. First, creating a class is 
10-100 times slower than creating a function. Second, calling it is slower than 
calling a function.

sys._getframe() is already used in the typing module (and also in collections 
and enum).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34963>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to