STINNER Victor added the comment:

On Windows, _Py_attribute_data_to_stat() converts BY_HANDLE_FILE_INFORMATION to 
_Py_stat_struct, and then _pystat_fromstructstat() creates Python objects.

The file index in BY_HANDLE_FILE_INFORMATION is made of two DWORD, so yes, it's 
unsigned.

On Linux, stat.st_ino type is ino_t which is unsigned too.

So I created a pull request to fix the bug, even if I don't think that a 
filesystem produce inodes larger than 2^63-1. Not sure if it's worth it to 
backport the fix to Python 2.7, 3.5 and 3.6?

----------
nosy: +haypo

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

Reply via email to