PEP on path module for standard library

Peter Hansen peter at engcorp.com
Fri Jul 22 14:29:18 EDT 2005


Duncan Booth wrote:
> As I said elsewhere I haven't 
> used path for anything real, so I'm still finding surprises such as why 
> this doesn't do what I expect:
> 
>>>>p = path('a/b')
>>>>q = path('c/d')
>>>>p+q
> 
> path(u'a/bc/d')

Just a note, though you probably know, that this is intended to be 
written this way with path:

 >>> p / q
path(u'a/b/c/d')

-Peter



More information about the Python-list mailing list