[+] tqdm and scientific utils

This commit is contained in:
Azalea (on HyDEV-Daisy)
2022-07-03 02:17:34 -04:00
parent 7f1eb2b443
commit 2ac83c5808
4 changed files with 131 additions and 3 deletions
+7 -1
View File
@@ -1,3 +1,5 @@
from __future__ import annotations
import io
import pickle
@@ -6,7 +8,11 @@ def pickle_encode(obj: any, protocol=None, fix_imports=True) -> bytes:
"""
Encode object to pickle bytes
>>> by = pickle_encode({'meow': 565656})
>>> by = pickle_encode({'function': pickle_encode})
>>> len(by)
57
>>> decoded = pickle_decode(by)
>>> by = decoded['function']({'meow': 565656})
>>> pickle_decode(by)
{'meow': 565656}
"""