[issue40356] OverflowError: mktime argument out of range

2022-01-23 Thread Irit Katriel


Irit Katriel  added the comment:

3.7 is no longer maintained. I was unable to reproduce this on 3.11 on windows 
or Mac.  Please create a new issue if you are still seeing this on a current 
version.

--
nosy: +iritkatriel
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40356] OverflowError: mktime argument out of range

2020-04-22 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +belopolsky, p-ganssle

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40356] OverflowError: mktime argument out of range

2020-04-21 Thread Eric V. Smith


Eric V. Smith  added the comment:

FWIW, that time.struct_time value is:

>>> d
time.struct_time(tm_year=2020, tm_mon=4, tm_mday=16, tm_hour=19, tm_min=12, 
tm_sec=35, tm_wday=3, tm_yday=107, tm_isdst=1)


I don't get an error on 3.7.4 from Cygwin or 3.7.6 from stock Fedora.

--
components: +Interpreter Core -C API
nosy: +eric.smith
type: crash -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40356] OverflowError: mktime argument out of range

2020-04-21 Thread darkman66


New submission from darkman66 :

example test

import time, pickle

d=pickle.loads(b'\x80\x03ctime\nstruct_time\nq\x00(M\xe4\x07K\x04K\x10K\x13K\x0cK#K\x03KkK\x01tq\x01}q\x02(X\x07\x00\x00\x00tm_zoneq\x03NX\t\x00\x00\x00tm_gmtoffq\x04Nu\x86q\x05Rq\x06.')
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

--
components: C API
messages: 366944
nosy: darkman66
priority: normal
severity: normal
status: open
title: OverflowError: mktime argument out of range
type: crash
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com