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

I suggest that rather than using composite time stamps, decimal.Decimal is used 
to represent high-precision time in Python.

On input to os.utime, the function could just polymorphically accept Decimal, 
and try its best.

I see three approaches that preserve compatibility for stat (plus the 
incompatible one of just changing the field types of struct stat):
1. have a flag in the stat module to change the field types globally.
   This would be appropriate if the ultimate goal is to eventually change
   the fields in an incompatible way in Python 4.
2. have a flag to stat that changes the field types, on a per-call basis
3. mirror the existing fields, into _decimal versions.

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

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

Reply via email to