Re: "long int..." exception reported with strange traceback location
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: "long int..." exception reported with strange traceback location

From: Joe Peterson <joe@skyrush.com>
Date: Tue Jul 05 2005 - 06:42:10 CEST

Yep, my thinking too. Well, maybe it's all related to the same bug
somehow. OK, I submitted a bug report, and I included a slight
modification of the test case you guys suggested:

----------------
import sys
import os

t = 2147483648L
os.utime("foo_test_file", (t, t))

print "hi"
----------------

This way, there's no "float" call, simply an asignment of a long int...

        Thanks, Joe

Peter Otten wrote:
> Terry Reedy wrote:
>
>
>>>>>os.utime("foo_test_file", (0, float(sys.maxint+1)))
>>
>>Traceback (most recent call last):
>>File "<stdin>", line 1, in ?
>>TypeError: utime() arg 2 must be a tuple (atime, mtime)
>>
>>which is quite sane. So maybe bug was introduced in 2.3 which you were
>>running.
>
>
> But arg 2 *is* a tuple. So a least the error message is wrong, too.
>
> Peter
>
Received on Thu Sep 29 16:45:32 2005