[issue32180] bool() vs len() > 0 on lists
Дилян Палаузов
report at bugs.python.org
Thu Nov 30 08:39:06 EST 2017
Дилян Палаузов <dilyan.palauzov at aegee.org> added the comment:
Under these circumstances https://wiki.python.org/moin/PythonSpeed/PerformanceTips shall be updated to state that
"len('a list') > 0" is slower than "True if 'a list' else False"
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32180>
_______________________________________
More information about the Python-bugs-list
mailing list