[Python-ideas] Implement comparison operators for range objects

Georg Brandl g.brandl at gmx.net
Wed Oct 12 19:49:15 CEST 2011


Am 12.10.2011 19:33, schrieb Steven D'Aprano:

> Aside:
> 
> I'm astonished to see that range objects have a count method! What's the 
> purpose of that? Any value's count will either be 0 or 1

A method that works on any Sequence doesn't know that.

Georg




More information about the Python-ideas mailing list