[Tutor] changing list index start

Steven D'Aprano steve at pearwood.info
Sat Sep 11 20:04:57 CEST 2010


On Sun, 12 Sep 2010 02:00:02 am Lie Ryan wrote:

> As an alternative solution, you can derive from UserList and overload
> the __getitem__ and __setitem__ operator:

We've been able to inherit from list directly since at least Python 2.2. 
Why are you using UserList?



-- 
Steven D'Aprano


More information about the Tutor mailing list