▲ | pansa2 9 days ago | |||||||||||||||||||||||||||||||
Your example is interesting - `join`, a generator expression and a ternary, and Python requires us to write all of them inside-out. It's a shame we can't write that in a more natural order, something like:
| ||||||||||||||||||||||||||||||||
▲ | davepeck 9 days ago | parent [-] | |||||||||||||||||||||||||||||||
Yeah. `join` has forever been backwards to me in Python and I still sometimes get it wrong the first time out. Comprehensions, though -- they are perfection. :-) | ||||||||||||||||||||||||||||||||
|