Update README.md

Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
David Rotermund 2023-12-28 17:00:37 +01:00 committed by GitHub
parent 9226bb199a
commit 8075b95189
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
# Pickle
# [pickle](https://docs.python.org/3/library/pickle.html#module-pickle): Python object serialization
{:.no_toc}
<nav markdown="1" class="toc-class">
@ -8,10 +8,16 @@
## The goal
How to store Python objects in files and how to restore them.
Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
**Warning The pickle module is not secure. Only unpickle data you trust.**
## [pickle](https://docs.python.org/3/library/pickle.html#module-pickle)
> The [pickle](https://docs.python.org/3/library/pickle.html#module-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.
## [pickle.dump](https://docs.python.org/3/library/pickle.html#pickle.dump) and [pickle.dumps](https://docs.python.org/3/library/pickle.html#pickle.dumps)
```python