[issue41590] "zip()" very slowly for this
Vedran Čačić
report at bugs.python.org
Wed Aug 19 16:19:29 EDT 2020
Vedran Čačić <vedgar at gmail.com> added the comment:
First, what you wrote with if...else is _not_ "if clause". It's a conditional expression. You'll recognize them easily if you remember that "if clause" in comprehensions never has an "else", while conditional expression always does.
Second, speed is just one of many, many criteria by which we evaluate programs. If only speed matters to you, you probably shouldn't be writing in Python at all. There are much faster languages.
----------
nosy: +veky
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41590>
_______________________________________
More information about the Python-bugs-list
mailing list