Top "Pickle" questions

An object serialization module for Python.

What is the difference between rb and r+b modes in file objects

I am using pickle module in Python and trying different file IO modes: # works on windows.. "rb" with open(pickle_…

python file file-io pickle
Can't pickle <type 'instancemethod'> when using multiprocessing Pool.map()

I'm trying to use multiprocessing's Pool.map() function to divide out work simultaneously. When I use the following code, it …

python multithreading multiprocessing pickle pool
Not able to pip install pickle in python 3.6

I am trying to run the following code: import bs4 as bs import pickle import requests import lxml def save_…

python pickle
Multiprocessing: How to use Pool.map on a function defined in a class?

When I run something like: from multiprocessing import Pool p = Pool(5) def f(x): return x*x p.map(f, [1,2,3]) …

python multiprocessing pickle
What causes the error "_pickle.UnpicklingError: invalid load key, ' '."?

I'm trying to storage 5000 data elements on an array. This 5000 elements are storage on an existent file (therefore it's not …

python pickle
installing cPickle with python 3.5

This might be silly but I am unable to install cPickle with python 3.5 docker image Dockerfile FROM python:3.5-onbuild requirements.…

python docker pickle python-3.5
best way to preserve numpy arrays on disk

I am looking for a fast way to preserve large numpy arrays. I want to save them to the disk …

python numpy pickle binary-data preserve
Dump a list in a pickle file and retrieve it back later

I'm trying to save a list of strings, so that it can be accessed later. How can it be achieved …

python list pickle
Saving and loading multiple objects in pickle file?

I have a class that serves players in a game, creates them and other things. I need to save these …

python class object python-3.x pickle