On 06.04.16 08:52, Greg Ewing wrote: > Nick Coghlan wrote: >> The most promising option for that is probably "getattr(path, 'path', >> path)", > > Is there something seriously wrong with str(path)? What if path is None or bytes?