| ▲ | pansa2 8 months 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 8 months 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. :-) | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||