Message257570
Random idea: what if pathlib.Path defined a .path attribute that was a plain string? Then you could write p.path instead of str(p), and "if hasattr(p, 'path'): p = p.path". This would be the new protocol. Advantage is also that DirEntry (returned by the new os.scandir()) already supports it. :-) |
|
Date |
User |
Action |
Args |
2016-01-06 01:02:15 | gvanrossum | set | recipients:
+ gvanrossum, barry, brett.cannon, georg.brandl, pitrou, bronger, ezio.melotti, Arfrever, r.david.murray, daniel.ugra, cool-RR, tshepang |
2016-01-06 01:02:15 | gvanrossum | set | messageid: <1452042135.72.0.198905539506.issue22570@psf.upfronthosting.co.za> |
2016-01-06 01:02:15 | gvanrossum | link | issue22570 messages |
2016-01-06 01:02:15 | gvanrossum | create | |
|