Message352880
You can use a lambda instead of partial:
squared = lambda x: pow(x, 2)
Proposed names look meaningful. But after adding support of keyword arguments please compare performance of the old and the new functions. I expect that the difference will be small, but we need to check. |
|
Date |
User |
Action |
Args |
2019-09-20 18:37:05 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, mark.dickinson, ammar2 |
2019-09-20 18:37:05 | serhiy.storchaka | set | messageid: <1569004625.5.0.465202133617.issue38237@roundup.psfhosted.org> |
2019-09-20 18:37:05 | serhiy.storchaka | link | issue38237 messages |
2019-09-20 18:37:05 | serhiy.storchaka | create | |
|