[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-05 Thread Viktor Chynarov
Viktor Chynarov added the comment: Serhiy, when I use a large number, Python also crashes. >>> initial_struct_time = [tm for tm in time.localtime()] >>> initial_struct_time[3] = 101 >>> faulty_time = time.asctime(initial_struct_time) The above code leads t

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-04 Thread Viktor Chynarov
Viktor Chynarov added the comment: If an array created from a struct_time that has a negative tm_hour is passed as an argument to time.asctime(), Python crashes. >>> initial_struct_time = [tm for tm in time.localtime()] >>> initial_struct_time[3] = -1 >>>

[issue16137] Using time.asctime() with an array with negative tm_hour causes Python Crash.

2012-10-04 Thread Viktor Chynarov
New submission from Viktor Chynarov: If a that has a negative tm_hour is passed as an argument to time.asctime(), Python crashes. >>> initial_struct_time = [tm for tm in time.localtime()] >>> initial_struct_time[3] = -1 >>> faulty_time = time.