lucianopaz / compress_pickle

Standard python pickle, thinly wrapped with standard compression libraries
MIT License
41 stars 10 forks source link

File ending with `.pkl.gz` is stored as `.pklgz` #27

Closed LucaCappelletti94 closed 3 years ago

LucaCappelletti94 commented 3 years ago

Hello @lucianopaz,

Thank you for making this library!

I wanted to ask why, if the provided path is .pkl.gz, the files are stored as .pklgz. This feels like an undesired default behaviour that may be, if necessary, enabled with a flag, as it breaks libraries that depend on the files to be stored as the given path requires.

Ciao e Grazie, Luca

lucianopaz commented 3 years ago

Thanks from reporting @LucaCappelletti94. This is definitely a bug. I'll try to dig into it soon. One question, do you see this behavior on version 2.0.0?

lucianopaz commented 3 years ago

Nevermind, in the end it was a dumb bug. If you update to v2.0.1, the bug should be fixed now.