Top "Pickle" questions

An object serialization module for Python.

Using pickle.dump - TypeError: must be str, not bytes

I'm using python3.3 and I'm having a cryptic error when trying to pickle a simple dictionary. Here is the code: …

python python-3.x pickle
multiprocessing.Pool - PicklingError: Can't pickle <type 'thread.lock'>: attribute lookup thread.lock failed

multiprocessing.Pool is driving me crazy... I want to upgrade many packages, and for every one of them I have …

python threadpool multiprocessing pickle
Pickle incompatibility of numpy arrays between Python 2 and 3

I am trying to load the MNIST dataset linked here in Python 3.2 using this program: import pickle import gzip import …

python python-3.x pickle
Understanding Pickling in Python

I have recently got an assignment where I need to put a dictionary (where each key refers to a list) …

python pickle python-2.7
Save a dictionary to a file (alternative to pickle) in Python?

Answered I ended up going with pickle at the end anyway Ok so with some advice on another question I …

python dictionary save pickle
Unpickling a python 2 object with python 3

I'm wondering if there is a way to load an object that was pickled in Python 2.4, with Python 3.4. I've been …

python python-3.x pickle python-2.4 python-2to3
Pickle or json?

I need to save to disk a little dict object whose keys are of the type str and values are …

python json pickle
Convert numpy array type and values from Float64 to Float32

I am trying to convert threshold array(pickle file of isolation forest from scikit learn) of type from Float64 to …

python numpy scikit-learn pickle
Python, writing an integer to a '.txt' file

Would using the pickle function be the fastest and most robust way to write an integer to a text file? …

python performance pickle robustness
Python pickle error: UnicodeDecodeError

I'm trying to do some text classification using Textblob. I'm first training the model and serializing it using pickle as …

python pickle textblob