mikael
Mar 11, 2020 - 08:13
With this:
import pathlib
p = pathlib.Path('~/Documents')
p.expanduser()
... I get a stacktrace:
AttributeError: 'PosixPath' object has no attribute 'expanduser'
dir(p) shows no trace of expanduser, although it should have been there since 3.5.
Any ideas why? Something I am doing or A Pythonista quirk?