[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

Andrei Kulakov report at bugs.python.org
Mon Sep 6 13:52:12 EDT 2021


Andrei Kulakov <andrei.avk at gmail.com> added the comment:

To be more precise, this change fixes https://bugs.python.org/issue41082 by raising RuntimeError instead of KeyError and also by documenting it, which means matplotlib can fix it by either using os.path.expanduser or catching RuntimeError, whichever might work better in their case.

I will let them know once we sort this out.

----------

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


More information about the Python-bugs-list mailing list