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

DM-32682: Allow del and pop to delete hierarchical names #71

Merged
merged 1 commit into from Dec 1, 2021

Conversation

timj
Copy link
Member

@timj timj commented Nov 25, 2021

People use keys of "a.b.c" in remove() and we should allow that to work with del and pop(). This requires we use exists() rather than in to check whether the key is present or not because in only looks at the top level since it has to be consistent with __iter__.

@timj timj requested a review from ktlim November 25, 2021 17:33
People use keys of "a.b.c" in remove() and we should allow
that to work with del and pop. This requires we use exists() rather
than "in" to check whether the key is present or not because "in"
only looks at the top level since it has to be consistent with
__iter__.
@timj timj merged commit 68429ac into main Dec 1, 2021
@timj timj deleted the tickets/DM-32682 branch December 1, 2021 23:16
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.

None yet

2 participants