Message 336772 - Python tracker (original) (raw)

No, the bug is not fixed, and this is not easy issue. You should use non-integer Decimals to reproduce it. In 3.8 this emits a deprecation warning:

import datetime from decimal import Decimal as D datetime.datetime.utcfromtimestamp(D(1425808327.307651)) :1: DeprecationWarning: an integer is required (got type decimal.Decimal). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python. datetime.datetime(2015, 3, 8, 9, 52, 7)