[issue14127] os.stat and os.utime: allow preserving exact metadata
Martin v. Löwis
report at bugs.python.org
Sun Feb 26 19:46:32 CET 2012
Martin v. Löwis <martin at v.loewis.de> added the comment:
> I suggest that publishing nanoseconds as a plain int would be a
> nasty API. Consider what it would do to os.utime:
No, it wouldn't. Please re-read Guido's proposal. If you want to
specify nanoseconds, you have to pass the ns= parameter. My only
quibble with the specific spelling is that it invokes Godwin's law
(but I can live that that as a theoretical concern, also).
> Have we ever published an API that treated a parameter as two wildly
> different numbers based solely on whether the parameter was an int
> or a float?
No, and Guido is on the record for objecting such APIs. Hence the
keyword parameter.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14127>
_______________________________________
More information about the Python-bugs-list
mailing list