Martin v. Löwis <mar...@v.loewis.de> added the comment:

This is a system limitation. The underlying file system supports nanosecond 
resolution for the file stamps, and stat(2) also supports reporting them. 
However, utimes(2) only supports microsecond resolution when setting them.

Linux supports utimensat(2) since 2.6.22 (July 2007), however, Python doesn't 
use it. It would be possible to come up with a patch to transparently use it 
where available. Are you interested in writing such a patch?

As a consequential issue: For Python, a long time ago, it was decided that time 
stamps in system interfaces are floating point numbers. As a consequence, 
nanoseconds cannot be accurately represented for today's dates (IIUC). I doubt 
there is anything we could do about this; this is likely "won't fix".

----------
nosy: +loewis

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

Reply via email to