[issue27639] UserList.__getitem__ doesn't account for slices
Michael Blahay
report at bugs.python.org
Mon May 6 16:57:44 EDT 2019
Michael Blahay <mblahay at gmail.com> added the comment:
Results from a quick unit test on the proposed changes were positive:
>>> from collections import UserList
>>> UserList([0,1,2,3,4,5])[0:2].__class__
<class 'collections.UserList'>
If you compare this result with the one a couple comments above, you can see that the result is no longer a list, but rather of type UserList.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27639>
_______________________________________
More information about the Python-bugs-list
mailing list