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

Fix PersistentDict.update to accept keyword arguments. #127

Merged
merged 1 commit into from
Feb 19, 2020
Merged

Conversation

jamadden
Copy link
Member

@jamadden jamadden commented Feb 15, 2020

Like the native UserDict. Previously, most uses of keyword arguments resulted in TypeError; in the undocumented and extremely unlikely event of a single keyword argument called b that happens to be a dictionary, the behaviour will change. Also adjust
the signatures of setdefault and pop to match the native version.

Also optimize clear and popitem to not mark the object as changed unnecessarily.

Fixes #126

Fixes #126.

Also optimize clear and popitem to not mark the object as changed unnecessarily.
Copy link
Member

@icemac icemac left a comment

Choose a reason for hiding this comment

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

LGTM.

@jamadden jamadden merged commit a6a18ea into master Feb 19, 2020
@jamadden jamadden deleted the issue126 branch February 19, 2020 11:20
@jamadden
Copy link
Member Author

Thanks!

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.

PersistentMapping.update does not accept keyword arguments
2 participants