Message341618
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). |
|
Date |
User |
Action |
Args |
2019-05-06 19:30:41 | mblahay | set | recipients:
+ mblahay, rhettinger, r.david.murray, serhiy.storchaka, vaultah, staticshock |
2019-05-06 19:30:41 | mblahay | set | messageid: <1557171041.22.0.375473054804.issue27639@roundup.psfhosted.org> |
2019-05-06 19:30:41 | mblahay | link | issue27639 messages |
2019-05-06 19:30:41 | mblahay | create | |
|