3 ms·
How is the order important? Why couldn't Python have implemented: result = cond then expr1 else expr2 (Except that it's harder to read, which is why Pytho
by lvh 16y ago
How is the order important? Why couldn't Python have implemented:
result = cond then expr1 else expr2
(Except that it's harder to read, which is why Python doesn't have that.)
IMNHSO, precisely for the reason you mention, that would be much more of a hack.