Eryk Sun <eryk...@gmail.com> added the comment:

The legacy maximum buffer size is 260 characters, but remember that strings in 
C are terminated by a null character (i.e. "\0"). So the maximum path length is 
actually 259 characters when opening files. 

In Windows 10 with Python 3.6+, you can enable the `LongPathsEnabled` system 
setting to extend the limit up to about 32760 characters. In many cases you can 
also use the "\\\\?\\" extended-path prefix to access a long path (e.g. 
r"\\?\C:\some\long\path"), but the path has to be fully qualified and can only 
use backslash as the separator, not forward slash.

----------
components: +Windows
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware

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

Reply via email to