]> granicus.if.org Git - python/commit
bpo-27639: Correct return type for UserList slicing operation (#13169)
authorMichael Blahay <mblahay@users.noreply.github.com>
Tue, 7 May 2019 21:41:06 +0000 (17:41 -0400)
committerMark Shannon <mark@hotpy.org>
Tue, 7 May 2019 21:41:06 +0000 (17:41 -0400)
commitb1c3167c232c36ed3543ca351ff10c613639b5f5
tree93ea768476af4da82e8697317a131de34c6a2772
parentca87eebb22d202c33f3317cbf85059cadc64fa9f
bpo-27639: Correct return type for UserList slicing operation (#13169)

* BPO-27639: Correct return type for UserList slicing operation

Added logic to __getitem__ magic method for UserList to ensure that the return
type matches that of self.
Lib/collections/__init__.py
Lib/test/test_userlist.py
Misc/NEWS.d/next/Core and Builtins/2019-05-07-15-49-17.bpo-27639.b1Ah87.rst [new file with mode: 0644]