r/ProgrammerTIL • • Sep 12 '17

Python [Python] TIL that you can chain comparisons

69 Upvotes

16 comments sorted by

View all comments

Show parent comment

2

u/sim642 Sep 13 '17

I simply feel like Python should restrict the chaining to monotone sequences because that's the only practical and unambiguously understandable use of the syntax.