Skip to content

Make slices hashable.#2

Open
orez- wants to merge 1 commit into
masterfrom
hashable_slice
Open

Make slices hashable.#2
orez- wants to merge 1 commit into
masterfrom
hashable_slice

Conversation

@orez-
Copy link
Copy Markdown
Owner

@orez- orez- commented May 21, 2017

I am not very good at C.

>>> x = {}
>>> x[1:2:3] = 1
>>> x[:] = 2
>>> x[1:2:3]
1
>>> x
{slice(1, 2, 3): 1, slice(None, None, None): 2}

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.

1 participant