I upgraded to Python 1.6a2 from 1.5.1 to use Mailman, and now I have a problem with an older program that calls time.mktime. It used to take a time tuple, but now I get an error that says it only takes a single argument.
Does anyone know about this? Is there a better list to ask this question?
Sincerely,
David Smead http://www.amplepower.com. http://www.ampletech.com.
At 21:17 -0700 5/29/2000, David Smead wrote:
I upgraded to Python 1.6a2 from 1.5.1 to use Mailman, and now I have a problem with an older program that calls time.mktime. It used to take a time tuple, but now I get an error that says it only takes a single argument.
Does anyone know about this? Is there a better list to ask this question?
Hi, Dave...
I believe the following is true...the pattern certainly is and the remark about sockets.
time.mktime() always took a tuple, but now it only takes that, rather than being relaxed and taking the tuple members as separate parameters. Just find the existing call and insert another parenthesis pair around the arguments. [Inside the existing (), outside it, or mixed. ;-)]
Some other calls have been tightened up the same way (the constructor for sockets being one).
-- John Baxter jwblist@olympus.net Port Ludlow, WA, USA
participants (2)
-
David Smead
-
John W Baxter