Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for slice assignment to ListContainer #130

Merged
merged 1 commit into from
Dec 22, 2019
Merged

Add support for slice assignment to ListContainer #130

merged 1 commit into from
Dec 22, 2019

Conversation

Etherian
Copy link
Contributor

Modifies ListContainer.__setitem__ so that it will recognize and properly handle slice assignments.

Python's language reference isn't quite clear on what __setitem__ is supposed to receive during a slice assignment, but the behavior assumed here (receiving a slice object as the index and the value unchanged) seems to be standard.

Modifies `ListContainer.__setitem__` so that it will recognize and properly handle slice assignments.
@sergiocorreia sergiocorreia merged commit 6b2712f into sergiocorreia:master Dec 22, 2019
@sergiocorreia
Copy link
Owner

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants