[Python-Dev] bpo-36558: Change time.mktime() return type from float to int?

Victor Stinner vstinner at redhat.com
Tue Apr 16 11:16:37 EDT 2019


Le mar. 16 avr. 2019 à 16:44, Paul Ganssle <paul at ganssle.io> a écrit :
> 2. Mainly for Victor, but anyone can answer: I agree that the natural output of `mktime()` would be `int` if I were designing it today, but would there be any practical benefits for making this change?

It's just for the consistency of the function regarding to C function
mktime() return type and its input types :-)

> Are there problems cropping up because it's returning a float?

None.

Victor
-- 
Night gathers, and now my watch begins. It shall not end until my death.


More information about the Python-Dev mailing list