This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mblahay
Recipients mblahay, r.david.murray, rhettinger, serhiy.storchaka, staticshock, vaultah
Date 2019-05-06.19:30:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557171041.22.0.375473054804.issue27639@roundup.psfhosted.org>
In-reply-to
Content
Here is a test that more explicitly shows the problem. 

>>> from collections import UserList
>>> UserList([0,1,2,3,4,5])[0:2].__class__
<class 'list'>
>>> 

It can clearly be seen here that the return type of the slicing operator is list when it should, in this case, be UserList (or whatever class one is using that is derived from UserList).
History
Date User Action Args
2019-05-06 19:30:41mblahaysetrecipients: + mblahay, rhettinger, r.david.murray, serhiy.storchaka, vaultah, staticshock
2019-05-06 19:30:41mblahaysetmessageid: <1557171041.22.0.375473054804.issue27639@roundup.psfhosted.org>
2019-05-06 19:30:41mblahaylinkissue27639 messages
2019-05-06 19:30:41mblahaycreate