27 Mar
2016
27 Mar
'16
9:53 p.m.
There is an open issue and I'm working on the patch. I'm going to make major path-related functions in the stdlib accepting the Path object in 3.6.
This is great! Thanks Serhiy.
try: path = path.path except AttributeError: pass
The advantage is that this works not with concrete Path implementation, but with any third-party Path class and other path-related objects like DirEntry that provide the "path" attribute.
This sounds like the way to go, also. Could have saved ourselves some discussion :-) -CHB