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

Will you add a persistence method? #252

Closed
forestbat opened this issue Aug 2, 2022 · 1 comment
Closed

Will you add a persistence method? #252

forestbat opened this issue Aug 2, 2022 · 1 comment

Comments

@forestbat
Copy link

I want to save a bidict to a file like .csv,however I can't find solution in this project.
So I need a thing which can persist bidict.

@jab
Copy link
Owner

jab commented Aug 2, 2022

As documented, bidicts are pickleable, so you can use the pickle module to persist the data in a bidict to a file.

For other formats like csv, that’s up to you. Just like you won’t find anything about csv persistence in the built-in dict, bidict is the same.

@jab jab closed this as completed Aug 2, 2022
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

No branches or pull requests

2 participants