Top "Pickle" questions

An object serialization module for Python.

How to stop attributes from being pickled in Python

I am using gnosis.xml.pickle to convert an object of my own class to xml. The object is initialized …

python pickle
Why pickle eat memory?

I trying to deal with writing huge amount of pickled data to disk by small pieces. Here is the example …

python performance file-io pickle persistent
Simple, hassle-free, zero-boilerplate serialization in Scala/Java similar to Python's Pickle?

Is there a simple, hassle-free approach to serialization in Scala/Java that's similar to Python's pickle? Pickle is a dead-simple …

java python scala serialization pickle
python 2.6 cPickle.load results in EOFError

I use cPickle to pickle a list of integers, using HIGHEST_PROTOCOL, cPickle.dump(l, f, HIGHEST_PROTOCOL) When I …

python pickle eoferror
How do I "pickle" instances of Django models in a database into sample python code I can use to load sample data?

How do I "pickle" instances of Django models in a database into sample python code I can use to load …

python django pickle sample-data
dreaded "not the same object error" pickling a queryset.query object

I have a queryset that I need to pickle lazily and I am having some serious troubles. cPickle.dumps(queryset.…

python django serialization pickle
Saving a cross-validation trained model in Scikit

I have trained a model in scikit-learn using Cross-Validation and Naive Bayes classifier. How can I persist this model to …

python scikit-learn pickle cross-validation
Reading multiple Python pickled data at once, buffering and newlines?

to give you context: I have a large file f, several Gigs in size. It contains consecutive pickles of different …

python newline pickle buffering
Can't pickle static method - Multiprocessing - Python

I'm applying some parallelization to my code, in which I use classes. I knew that is not possible to pick …

python class multiprocessing pickle pool
Sklearn joblib load function IO error from AWS S3

I am trying to load a pkl dump of my classifier from sklearn-learn. The joblib dump does a much better …

python amazon-s3 scikit-learn pickle joblib