You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ORPA-pyOpenRPA/Resources/WPy64-3720/python-3.7.2.amd64/Lib/site-packages/partd/pickle.py

18 lines
420 B

6 years ago
"""
get/put functions that consume/produce Python lists using Pickle to serialize
"""
from __future__ import absolute_import
from .compatibility import pickle
from .encode import Encode
from functools import partial
def concat(lists):
return sum(lists, [])
Pickle = partial(Encode,
partial(pickle.dumps, protocol=pickle.HIGHEST_PROTOCOL),
pickle.loads,
concat)