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

2005-07-04 Thread Joe Peterson
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" ---

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

2005-07-04 Thread Peter Otten
Terry Reedy wrote: os.utime("foo_test_file", (0, float(sys.maxint+1))) > Traceback (most recent call last): > File "", 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*

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

2005-07-04 Thread Terry Reedy
"Michael Hoffman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I came up with a simpler testcase. Strangely, the exception occurs in > the statement *following* the os.utime() call: > > >>> import os, sys > >>> os.utime("foo_test_file", (0, float(sys.maxint+1))) > >>> print "hi"

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

2005-07-04 Thread Michael Hoffman
Joe Peterson wrote: > I could not find another example of this via internet searches, so here > it is... I am wondering if this is a python bug or otherwise. The > first example of this happened in a larger program of mine, and the > traceback reports the problem at the start of a "for" loop (mak

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

2005-07-04 Thread Joe Peterson
I could not find another example of this via internet searches, so here it is... I am wondering if this is a python bug or otherwise. The first example of this happened in a larger program of mine, and the traceback reports the problem at the start of a "for" loop (making no sense), but I cannot