-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Description
cloudpickle/cloudpickle/compat.py
Line 13 in 7ddb089
| from _pickle import Pickler # noqa: F401 |
uses _pickle module to import Pickler. However, as per python 3.8 documentation[0] this class is available directly in the pickle module.
from pickle import Pickler
works ok and it is equivalent to _pickle.Pickler
$ python
Python 3.9.7 (default, Nov 1 2021, 14:08:06)
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from _pickle import Pickler as p
>>> import pickle
>>> p is pickle.Pickler
True
>>>
[0] https://docs.python.org/3.8/library/pickle.html#pickle.Pickler
p-fernandes, jlaasonen, jolyj, DarkWingMcQuack and elkd
Metadata
Metadata
Assignees
Labels
No labels