
Feb. 23, 2013
3:21 a.m.
On 2/22/2013 1:43 PM, Antoine Pitrou wrote:
On Fri, 22 Feb 2013 17:40:29 +0000 (UTC) Wolfgang Maier <wolfgang.maier@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