About 2,550,000 results
Open links in new tab
  1. pickle - Understanding Pickling in Python - Stack Overflow

    Oct 4, 2019 · The pickle module implements a fundamental, but powerful algorithm for serializing and de-serializing a Python object structure. Pickling - is the process whereby a Python object …

  2. How can I use pickle to save a dict (or any other Python object)?

    I have looked through the information that the Python documentation for pickle gives, but I'm still a little confused. What would be some sample code that would write a new file and then use …

  3. python - How to read pickle file? - Stack Overflow

    The following is an example of how you might write and read a pickle file. Note that if you keep appending pickle data to the file, you will need to continue reading from the file until you find …

  4. python - How to use append with pickle? - Stack Overflow

    I need to append to a pickle file (as I don't have the entire dictionary with me at one go). So for doing the same I have written the following code: import pickle p = {} p[1] = 2 q = {} q['a...

  5. python - How to use pickle to save sklearn model - Stack Overflow

    Feb 26, 2019 · I want to dump and load my Sklearn trained model using Pickle. How to do that?

  6. Unpickling a python 2 object with python 3 - Stack Overflow

    Jan 29, 2015 · Does Python 2.4 have the json module? Perhaps you could write a 2.4 script that unpickles the object and saves it as a json object, and then write a 3.4 script that reads the …

  7. python - Saving an Object (Data persistence) - Stack Overflow

    Dec 25, 2010 · In Python 3.x the module had a pickle.DEFAULT_PROTOCOL added to it, but that doesn't exist in Python 2. Fortunately there's shorthand for writing …

  8. Python multiprocessing PicklingError: Can't pickle <type 'function ...

    As others have said multiprocessing can only transfer Python objects to worker processes which can be pickled. If you cannot reorganize your code as described by unutbu, you can use dill s …

  9. python - Saving and loading multiple objects in pickle file? - Stack ...

    Dec 21, 2013 · I have a class that serves players in a game, creates them and other things. I need to save these player objects in a file to use it later. I've tried the pickle module but I don't …

  10. python - What does it mean for an object to be picklable (or pickle ...

    Nov 21, 2022 · This is done to store the python objects and is also called as serialization. You can infer from this what de-serialization or unpickling means. So when we say an object is …