Message26268
Logged In: YES
user_id=44345
>> Thus, I have to either write my own special functions, or convert
>> the timedelta objects to integers first (then convert them back
>> afterwards).
How about adding tolong() that returns the number of microseconds
in the timedelta and fromlong() that accepts a long representing
microseconds and returns a timedelta object? That way the timedelta
object does a reasonably simple thing and the user is still responsible
for overflow the normal arithmetic stuff. You can do any sort of
arithmetic operations on the long (including converting to other
numeric types) with all the attendant caveats, then convert back to
a timedelta object at the end.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:34:31 | admin | link | issue1289118 messages |
2007-08-23 14:34:31 | admin | create | |
|