[issue21798] Allow adding Path or str to Path
Eric V. Smith
report at bugs.python.org
Wed Jun 18 19:36:40 CEST 2014
Eric V. Smith added the comment:
I agree with David. And, it already works, but uses '/', not '+':
>>> b / "_name.dat"
PosixPath('/tmp/some_base/_name.dat')
-1 to using + to be the equivalent of:
>>> pathlib.Path(str(b) + "_name.dat")
PosixPath('/tmp/some_base_name.dat')
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21798>
_______________________________________
More information about the Python-bugs-list
mailing list