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 invert method to immutabledict which returns the immutabledict in the inverse order (i.e. the keys/value pairs switch their positions) #70

Open
lichtefeld opened this issue Nov 7, 2019 · 1 comment
Assignees
Labels

Comments

@lichtefeld
Copy link
Collaborator

No description provided.

@gabbard
Copy link

gabbard commented Nov 7, 2019

This is of course only possible when the keys are unique. Warn about this in the docstring, and use the forbid_duplicate_keys constructor argument to immutabledict to thrown an exception when the condition is not met.

@gabbard gabbard added the student label Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants