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

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.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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

Reply via email to