Joined June 2012
·

Maxim Avanov

Programmer at Shopitize Ltd.
·
Russia
·
·
·

Well, you are right.
On the other hand, I couldn't say that the "idiomatic" Django configuration is good enough to follow it in every project. I would rather say that the only benefit of it is that it's standard. And I'd really like to add traversal routing to the project someday, just as a working option - in the same manner as Pyramid Hybrid Routing works (which is not a desired approach in most cases, but could be a salvation to developers working on some specific features that require complex view lookup logic).

Posted to In-place value conversion in Python over 1 year ago

v = (x == 1) and 'yes' or (x == 0) and 'no' or 'maybe'

Achievements
94 Karma
1,723 Total ProTip Views