from pathlib import Path as p
p() / "foo"
from pathlib import Path
Path() / "foo"
P.S. the code snippet I mentioned is not rendering with mailman archives, here it is again;from pathlib import path_literal as pp/"foo"the result is:PosixPath('foo')_______________________________________________Python-ideas mailing list -- python-ideas@python.orgTo unsubscribe send an email to python-ideas-leave@python.orgMessage archived at https://mail.python.org/archives/list/python-ideas@python.org/message/ARV4RO2YVDWGT4JQLPYJIIDYCYILLKQY/Code of Conduct: http://python.org/psf/codeofconduct/