Extended Slicing Support
BoonsNaibot opened this issue · comments
It seems that extended indexing is not supported.
>>> _list = weakreflist.WeakList(range(5))
>>> print _list[::-1]
Traceback (most recent call last):
File "<pyshell#29>", line 1, in <module>
_list[::-1]
File "weakreflist.py", line 28, in __getitem__
return self._getValue(list.__getitem__(self, key))
File "weakreflist.py", line 16, in _getValue
return ref()
TypeError: 'list' object is not callable
Creating a copy of the _list
's contents is a work-around--though not ideal.
sorry I've not seen your issue.