[issue22570] Better stdlib support for Path objects

Serhiy Storchaka report at bugs.python.org
Sun Jan 10 13:31:27 EST 2016


Serhiy Storchaka added the comment:

> str(arg.path) if hasattr(arg, 'path') else arg

DirEntry.path can be bytes.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22570>
_______________________________________


More information about the Python-bugs-list mailing list