[issue32557] allow shutil.disk_usage to take a file path on Windows also

Steve Dower report at bugs.python.org
Tue Sep 18 00:13:20 EDT 2018


Steve Dower <steve.dower at python.org> added the comment:

I took a quick look at the patch and the main issue I see is the use of the MAX_PATH constant. We encourage people to disable this limit where possible, so using dynamic allocation where we need to reduce the path will be a better way to avoid this function breaking.

There should be other examples of this pattern in the file, but I don't think it'll matter here if we always copy the string. Better to avoid it, of course, but that complicates things.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32557>
_______________________________________


More information about the Python-bugs-list mailing list