Author serhiy.storchaka
Recipients ammar2, mark.dickinson, rhettinger, serhiy.storchaka
Date 2019-09-20.18:37:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1569004625.5.0.465202133617.issue38237@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-09-20 18:37:05serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mark.dickinson, ammar2
2019-09-20 18:37:05serhiy.storchakasetmessageid: <1569004625.5.0.465202133617.issue38237@roundup.psfhosted.org>
2019-09-20 18:37:05serhiy.storchakalinkissue38237 messages
2019-09-20 18:37:05serhiy.storchakacreate