我是靠谱客的博主 美好眼睛,这篇文章主要介绍python argument out of range_issue 40356: OverflowError: mktime argument out of range - Python track...,现在分享给大家,希望可以做个参考。

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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部