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

Serializing Iterables with custom types #266

Open
pulkin opened this issue Sep 3, 2020 · 0 comments
Open

Serializing Iterables with custom types #266

pulkin opened this issue Sep 3, 2020 · 0 comments

Comments

@pulkin
Copy link

pulkin commented Sep 3, 2020

Long story short: I need to run dump(..., iterable_as_array=True) because of memory concerns. With this option, however, I lose control of how numpy.ndarray is serialized, for example. I do not need numpy.ndarray to be treated as a generic Iterable: I want, for example, to store the file name instead which I can perfectly do when iterable_as_array=False or I just use the built-in json library. iterable_as_array=True has an overwhelming priority which is hard to justify.

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

1 participant