Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] PEP: New timestamp formats

Antoine Pitrousolipsis at pitrou.net
Thu Feb 2 15:28:31 CET 2012


On Thu, 2 Feb 2012 15:09:41 +0100Victor Stinner <victor.stinner at haypocalc.com> wrote:> > Why int? That doesn't seem to bring anything.>> It helps to deprecate/replace os.stat_float_times(), which may be used> for backward compatibility (with Python 2.2 ? :-)).I must admit I don't understand the stat_float_times documentation:“For compatibility with older Python versions, accessing stat_result asa tuple always returns integers.Python now returns float values by default. Applications which do notwork correctly with floating point time stamps can use this function torestore the old behaviour.”These two paragraphs seem to contradict themselves.That said, I don't understand why we couldn't simply deprecatestat_float_times() right now. Having an option for integer timestampsis pointless, you can just call int() on the result if you want.RegardsAntoine.


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp