Python Pickle Module for saving objects (serialization)

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=2Tw39kZIbhs



Duration: 7:44
200,328 views
3,156


This Python programming tutorial covers how to pickle objects in Python.

The pickle module implements binary protocols for serializing and de-serializing a Python object structure. “Pickling” is the process whereby a Python object hierarchy is converted into a byte stream, and “unpickling” is the inverse operation, whereby a byte stream (from a binary file or bytes-like object) is converted back into an object hierarchy. Pickling (and unpickling) is alternatively known as “serialization”, “marshalling,” [1] or “flattening”; however, to avoid confusion, the terms used here are “pickling” and “unpickling”.

Source: https://docs.python.org/2/library/pickle.html

sample code: http://pythonprogramming.net
http://hkinsley.com
https://twitter.com/sentdex
http://sentdex.com
http://seaofbtc.com




Other Videos By sentdex


2015-06-01Check box - PyQt with Python GUI Programming tutorial 8
2015-05-31Pop up message - PyQt with Python GUI Programming tutorial 7
2015-05-30Toolbar - PyQt with Python GUI Programming tutorial 6
2015-05-29Menubar - PyQt with Python GUI Programming tutorial 5
2015-05-28Button Functions - PyQt with Python GUI Programming tutorial 4
2015-05-27Buttons - PyQt with Python GUI Programming tutorial 3
2015-05-26Application Structure - PyQt with Python GUI Programming tutorial 2
2015-05-25Intro/basic GUI - PyQt with Python GUI Programming tutorial
2015-05-24Exec - Python programming tutorial
2015-05-23Python Eval programming tutorial
2015-05-22Python Pickle Module for saving objects (serialization)
2015-05-21Graphing Live Twitter Sentiment - Language Processing With Python and NLTK p.21
2015-05-20Twitter Sentiment Analysis - Natural Language Processing With Python and NLTK p.20
2015-05-19Sentiment Analysis Module - Natural Language Processing With Python and NLTK p.19
2015-05-18Better training data - Natural Language Processing With Python and NLTK p.18
2015-05-16Investigating Bias - Natural Language Processing With Python and NLTK p.17
2015-05-16Combining Algos with a Vote - Natural Language Processing With Python and NLTK p.16
2015-05-16Scikit-Learn incorporation - Natural Language Processing With Python and NLTK p.15
2015-05-15Save Classifier with Pickle - Natural Language Processing With Python and NLTK p.14
2015-05-14Naive Bayes - Natural Language Processing With Python and NLTK p.13
2015-05-13Words as Features for Learning - Natural Language Processing With Python and NLTK p.12



Tags:
Python (Programming Language)
Serialization (File Format Genre)
Pickle
Object
tutorial
cpickle