Message307408
I'm sure adding list.__bool__() will not affect the performance. The real source of the difference is explained on the StackOverflow link.
PEP 8 contains a rule for testing the emptiness of a container. |
|
Date |
User |
Action |
Args |
2017-12-01 20:00:08 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, dilyan.palauzov |
2017-12-01 20:00:08 | serhiy.storchaka | set | messageid: <1512158408.89.0.213398074469.issue32180@psf.upfronthosting.co.za> |
2017-12-01 20:00:08 | serhiy.storchaka | link | issue32180 messages |
2017-12-01 20:00:08 | serhiy.storchaka | create | |
|