Vedran Čačić <ved...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41590>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to