Code Monkey home page Code Monkey logo

Comments (8)

richardjgowers avatar richardjgowers commented on August 21, 2024

What are we using pickles for?

from datreant.data.

kain88-de avatar kain88-de commented on August 21, 2024

python data pickles. For example if we store python objects.

from datreant.data.

richardjgowers avatar richardjgowers commented on August 21, 2024

Right yeah, but what is datreant using pickle for? git grep pickle isn't showing me anything?

from datreant.data.

kain88-de avatar kain88-de commented on August 21, 2024

pickle.dump(data, self.handle, pickle.HIGHEST_PROTOCOL)

Sure you are on the right repository?

from datreant.data.

richardjgowers avatar richardjgowers commented on August 21, 2024

Ah right yeah, I was looking at core

from datreant.data.

kain88-de avatar kain88-de commented on August 21, 2024

Oh well with string handling this is even more broken -.-. We have to check reading/writing with the bytes flags rb/wb to ensure data can be read/written independent of the python version.

from datreant.data.

kain88-de avatar kain88-de commented on August 21, 2024

This is to say. I now also encountered that a python2 dump cannot be read by python 3

from datreant.data.

kain88-de avatar kain88-de commented on August 21, 2024

https://bugs.python.org/issue6784

So they claim this is resolved. But I honestly haven't found a good solution today to enable reading / writing of pickles between python versions that works problem free. Some simple stiff and builtin types might work but not complex objects.

from datreant.data.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.