[Python-3000] optimizing [x]range (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Mon Jul 30 02:29:14 CEST 2007
- Previous message: [Python-3000] optimizing [x]range
- Next message: [Python-3000] optimizing [x]range
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
skip at pobox.com wrote:
You can't spell
a <= x <= b or a < x < b without remembering to add or subtract 1 from the appropriate endpoint
I think the use cases for this are where you're trying to express a range-like condition, i.e 'a <= x < b'. Then you have to make sure you get the right relations in the right places, which is the same kind of burden as remembering to add or subtract 1 in the right places.
-- Greg
- Previous message: [Python-3000] optimizing [x]range
- Next message: [Python-3000] optimizing [x]range
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]