Brett Cannon added the comment:

If all you want is to extract the path representation from an os.DirEntry 
instance and continue to work with strings/bytes then you can use os.fspath() 
which is new in Python 3.6 to get the representation: 
https://docs.python.org/3.6/library/os.html#os.fspath .

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27038>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to