概述
example test
import time, pickle
d=pickle.loads(b'x80x03ctimenstruct_timenqx00(Mxe4x07Kx04Kx10Kx13Kx0cK#Kx03KkKx01tqx01}qx02(Xx07x00x00x00tm_zoneqx03NXtx00x00x00tm_gmtoffqx04Nux86qx05Rqx06.')
time.mktime(d)
on macox python compiled via brew
Python 3.7.3 (default, Mar 6 2020, 22:34:30)
Type "copyright", "credits" or "license" for more information.
IPython 5.3.0 -- An enhanced Interactive Python.
all good, result -> Out[3]: 1587064355.0
in docker installed out of official deb (ubuntu 9.10)
Python 3.7.5 (default, Nov 20 2019, 09:21:52)
Type "copyright", "credits" or "license" for more information.
IPython 5.3.0 -- An enhanced Interactive Python.
In [5]: time.mktime(d)
---------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
in ()
----> 1 time.mktime(d)
OverflowError: mktime argument out of range
最后
以上就是美好眼睛为你收集整理的python argument out of range_issue 40356: OverflowError: mktime argument out of range - Python track...的全部内容,希望文章能够帮你解决python argument out of range_issue 40356: OverflowError: mktime argument out of range - Python track...所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复