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 method for Serialization.deserialize? #121

Open
ericphanson opened this issue Jul 18, 2021 · 1 comment
Open

Add method for Serialization.deserialize? #121

ericphanson opened this issue Jul 18, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@ericphanson
Copy link
Contributor

ericphanson commented Jul 18, 2021

Maybe

Serialization.deserialize(path::AbstractPath) = deserialize(IOBuffer(read(path)))

which would work for S3Paths. Similarly, serialize could be defined.

@rofinn
Copy link
Owner

rofinn commented Jul 19, 2021

Sure. Looks like deserialization for string filepaths was added in 1.1, so that would be consistent.

  deserialize(filename::AbstractString)

  Open a file and deserialize its contents.

  │ Julia 1.1
  │
  │  This method is available as of Julia 1.1.

@rofinn rofinn added the enhancement New feature or request label Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants