On Thu, 2 Feb 2012 16:25:25 +0100 Victor Stinner <victor.stin...@haypocalc.com> wrote: > > That said, I don't understand why we couldn't simply deprecate > > stat_float_times() right now. Having an option for integer timestamps > > is pointless, you can just call int() on the result if you want. > > So which API do you propose for time.time() to get a Decimal object? > > time.time(timestamp=decimal.Decimal) > time.time(decimal=True) or time.time(hires=True)
time.time(type=decimal.Decimal) sounds fine. If you want a boolean argument, either `decimal=True` or `exact=True`. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com