[issue1766304] improve xrange.__contains__
report at bugs.python.org
Wed Jun 2 20:07:03 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> > If so, I can have the patch ready by Friday 14:00 GMT, but if nobody will have time to review
> > (and possibly commit) in time for RC1 I guess I'll take my time with this.
> I'll review your patch, but why are you so eager to get this into 2.7?
> You realize that for integer x, x in xrange(a, b) is just another way
> to spell a <= x < b. What is your use case?
I really think this shouldn't go into 2.7. We certainly have better
things to do than potentially break something for an almost useless
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list