]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
BPO-27639: Correct return type for UserList slicing operation (#13203)
authorMichael Blahay <mblahay@users.noreply.github.com>
Sun, 26 May 2019 14:28:09 +0000 (10:28 -0400)
committerMark Shannon <mark@hotpy.org>
Sun, 26 May 2019 14:28:09 +0000 (15:28 +0100)
commitf3d909428c7c61ea32e8fbb9c8b48344e7904a53
tree9048b973cfa5439e0d6e3852b3a9bee7ab5185a9
parent1b85f4ec45a5d63188ee3866bd55eb29fdec7fbf
BPO-27639: Correct return type for UserList slicing operation (#13203)

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]