This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients belopolsky, hpesoj, lehmannro, mark.dickinson, pitrou, rhettinger, stargaming
Date 2009-09-21.09:49:33
SpamBayes Score 0.002663687
Marked as misclassified No
Message-id <1253526574.68.0.0502999900691.issue1766304@psf.upfronthosting.co.za>
In-reply-to
Content
Also, it would be good to add a test or two for non-integers, e.g. to make 
explicit that the following behaviour hasn't changed:

>>> class C:
...     def __int__(self):  return 3
...     def __index__(self): return 5
...     def __eq__(self, other): return other == 4
... 
>>> C() in range(0, 10, 2)
True
History
Date User Action Args
2009-09-21 09:49:34mark.dickinsonsetrecipients: + mark.dickinson, rhettinger, belopolsky, pitrou, stargaming, lehmannro, hpesoj
2009-09-21 09:49:34mark.dickinsonsetmessageid: <1253526574.68.0.0502999900691.issue1766304@psf.upfronthosting.co.za>
2009-09-21 09:49:33mark.dickinsonlinkissue1766304 messages
2009-09-21 09:49:33mark.dickinsoncreate