UserDict and UserList issue (bug?_
Norman Shelley
Norman_Shelley-RRDN60 at email.sps.mot.com
Fri Jun 30 19:54:37 EDT 2000
in UserDict and UserList there is one or more places where a call to
self's __class__() method is made, e.g.
def __getslice__(self, i, j):
i = max(i, 0); j = max(j, 0)
# This class and its subclasses need more arguments then 0
userlist = self.__class__()
....
This blows causes major problems when either of these two classes are
subclassed and the class which subclasses them requires creation
arguments. I think maybe a copy of self instead of a __class__() may be
a more robust solution.
More information about the Python-list
mailing list