singpolymatweeted, “@wolever something else python lacks: ternary operator/nice boolean operators. Have to use and/or words for everything. sngpl.ma/t45r2” @ 2010-141 13:32 UTC
2 Responses
wolever
•
@singpolyma waddya mean, no ternary? `foo if bar else baz` and pre-2.6 `bar and foo or baz` (with some caveats)
wolever
•
@singpolyma ah, yes – it does force you to write slightly less dense code.
2 Responses
wolever •
@singpolyma waddya mean, no ternary? `foo if bar else baz` and pre-2.6 `bar and foo or baz` (with some caveats)
wolever •
@singpolyma ah, yes – it does force you to write slightly less dense code.