[issue27175] Unpickling Path objects

Antony Lee report at bugs.python.org
Tue Aug 31 08:01:27 EDT 2021


Antony Lee <anntzer.lee at gmail.com> added the comment:

Despite the now well-known security limitations of pickle, it is still used as a simple way (from the user PoV) to exchange arbitrary Python objects (see e.g. https://joblib.readthedocs.io/en/latest/persistence.html).  Such objects can sometimes include Paths as attributes, and it seems unfortunate that the presence of a Path makes the entire object (which may include many more things than just the Path) impossible to unpickle on a different OS (especially if unpickling into a PurePath keeps all the functionality that makes sense on that other OS).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue27175>
_______________________________________


More information about the Python-bugs-list mailing list