[Python-ideas] PEP 428 - object-oriented filesystem paths
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Oct 7 01:01:21 CEST 2012
Stephen J. Turnbull wrote:
> On the other hand, `p + Path('foo')` and `Path('foo') + p` (where p is
> a Path, not a string) both seem reasonable to me.
I don't like the idea of using + as the path concatenation
operator, because
path + ".c"
is an obvious way to add an extension or other suffix to a
filename, and it ought to work.
--
Greg
More information about the Python-ideas
mailing list