Message327611
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). |
|
Date |
User |
Action |
Args |
2018-10-12 20:20:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, levkivskyi, fish2000 |
2018-10-12 20:20:08 | serhiy.storchaka | set | messageid: <1539375608.92.0.788709270274.issue34963@psf.upfronthosting.co.za> |
2018-10-12 20:20:08 | serhiy.storchaka | link | issue34963 messages |
2018-10-12 20:20:08 | serhiy.storchaka | create | |
|