Skip to content

bpo-27639: Slices of UserLists are instances of UserList now.#13150

Closed
serhiy-storchaka wants to merge 1 commit intopython:masterfrom
serhiy-storchaka:userlist-slice
Closed

bpo-27639: Slices of UserLists are instances of UserList now.#13150
serhiy-storchaka wants to merge 1 commit intopython:masterfrom
serhiy-storchaka:userlist-slice

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented May 7, 2019

Patch by Dmitry Kazakov.

https://bugs.python.org/issue27639

u = self.type2test(l)
self.assertIsInstance(u[:], self.type2test)
self.assertEqual(u[:], l)
self.assertIsInstance(u[::-1], self.type2test)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added also the test for extended slices (this does not work in Python 2).

@matrixise
Copy link
Copy Markdown
Member

@serhiy-storchaka do you think we could close this PR and the associated issue because #13169 has been merged into master and there is a backport (#13203) for 3.7.

@serhiy-storchaka serhiy-storchaka deleted the userlist-slice branch May 17, 2019 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants