Comment on Charming Python: Functional programming in PythonComments−koenigdavidmj15yThey are using the old 'foo and bar or baz' style as a cheap substitute for the ternary operator. That should be 'bar if foo else baz' in modern Python.−jacobolus15yIt’s an article from 2001....
Comments
They are using the old 'foo and bar or baz' style as a cheap substitute for the ternary operator. That should be 'bar if foo else baz' in modern Python.
It’s an article from 2001....