Message375673
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. |
|
Date |
User |
Action |
Args |
2020-08-19 20:19:29 | veky | set | recipients:
+ veky, steven.daprano, docs@python, email0.ya |
2020-08-19 20:19:29 | veky | set | messageid: <1597868369.19.0.434007982278.issue41590@roundup.psfhosted.org> |
2020-08-19 20:19:29 | veky | link | issue41590 messages |
2020-08-19 20:19:29 | veky | create | |
|