[Python-ideas] range

Terry Reedy tjreedy at udel.edu
Sat Feb 23 10:21:08 CET 2013


On 2/22/2013 1:43 PM, Antoine Pitrou wrote:
> On Fri, 22 Feb 2013 17:40:29 +0000 (UTC)
> Wolfgang Maier
> <wolfgang.maier at biologie.uni-freiburg.de>

>> Any plans to make range a valid base class to build upon in future releases?
>
> I suppose it wouldn't very difficult to make range subclassable.
> You can try writing a patch if you want:
> http://docs.python.org/devguide/

I was just about to suggest that making range subclassable would be an 
alternative to extending the current class. As far as I know, there is 
no principled reason why not, unlike Nonetype and bool.

-- 
Terry Jan Reedy




More information about the Python-ideas mailing list