[docs] [issue26330] shutil.disk_usage() on Windows can't properly handle unicode

STINNER Victor report at bugs.python.org
Wed Feb 10 10:44:32 EST 2016


STINNER Victor added the comment:

> Different but kind of related, disk_usage() is not able to accept bytes:

On Python 3, I don't think that it's a big issue: bytes filenames are
deprecated.

See the current thread on python-dev:
https://mail.python.org/pipermail/python-dev/2016-February/143150.html

It's really much better to use Unicode on Windows, and I also suggest
you to use Unicode on UNIX/BSD.

----------

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


More information about the docs mailing list