Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
9226bb199a
commit
8075b95189
1 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Pickle
|
# [pickle](https://docs.python.org/3/library/pickle.html#module-pickle): Python object serialization
|
||||||
{:.no_toc}
|
{:.no_toc}
|
||||||
|
|
||||||
<nav markdown="1" class="toc-class">
|
<nav markdown="1" class="toc-class">
|
||||||
|
@ -8,10 +8,16 @@
|
||||||
|
|
||||||
## The goal
|
## The goal
|
||||||
|
|
||||||
|
How to store Python objects in files and how to restore them.
|
||||||
|
|
||||||
Questions to [David Rotermund](mailto:davrot@uni-bremen.de)
|
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)
|
## [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
|
```python
|
||||||
|
|
Loading…
Reference in a new issue