A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-February/116139.html below:

[Python-Dev] PEP: New timestamp formats

[Python-Dev] PEP: New timestamp formatsNick Coghlan ncoghlan at gmail.com
Fri Feb 3 00:38:21 CET 2012
On Fri, Feb 3, 2012 at 8:37 AM, Glenn Linderman <v+python at g.nevcal.com> wrote:
> Sorry to bring this up, but the PEP should probably consider another option:
> Introducing a precedent following os.stat_decimal_times().  Like
> os.stat_float_times, it would decide the return types of timestamps from
> os.stat.  Or something along that line.  Having it affect the results of
> time.time would be weird, though.  And the whole design of
> os.stat_float_times smells of something being designed wrong in the first
> place, to need such an API to retain backward compatibility.  But I'm not
> sure it is, even yet, designed for such flexibility.

We could get away with a global switch for the int->float transition
because ints and floats interoperate pretty well. The same is not true
for binary floats and decimal.Decimal.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4