Using the Python pickle Module

preview_player
Показать описание
As a developer, you may sometimes need to send complex object hierarchies over a network or save the internal state of your objects to a disk or database for later use. To accomplish this, you can use a process called serialization, which is fully supported by the standard library thanks to the Python pickle module.

Рекомендации по теме
Комментарии
Автор

Great video, simple and explanatory. You forgot to mention how the pickle is not a true copy

ilayohana
Автор

Great video ! I discovered pickle through API's. When making tons a requests, you can use the pickle module to build a cache and save your responses. If you do the same request in the future, you'll be able to retrieve it from your local cache instead of making the same call to the API

JeremyAhoyo
Автор

This really helps to see how to use pickle. Thanks so much for making this video. It would be nice if you might include this code into a github repository.

artistpw
Автор

I have never used this because I don't understand the benefits (if any) of pickle over ubiquitous formats like JSON or even XML. Maybe you could discuss this in a future video?

cawsha
Автор

It's a cool feature I have no idea why I would ever want to use it though

schogaia
Автор

In case of class object byte string is readable

thelifehackerpro
Автор

😶 Okay, ...seen this here and there 😳 What would I use this for?

johanneszwilling
Автор

why is the class first letter is not capital here

jiwan
Автор

The class name should be "ExampleClass" instead of "example_class"

knut-olaihelgesen