[issue1766304] improve xrange.__contains__

Alexander Belopolsky report at bugs.python.org
Wed Jun 2 20:03:00 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

On Wed, Jun 2, 2010 at 11:17 AM, Tal Einat <report at bugs.python.org> wrote:
..
> 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?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1766304>
_______________________________________


More information about the Python-bugs-list mailing list