Bugs item #1003844, was opened at 2004-08-05 11:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1003844&group_id=78018
Category: com
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Paul Keating (pkeating)
Assigned to: Nobody/Anonymous (nobody)
Summary: pythoncom.MakeTime() should take parameters of type long
Initial Comment:
pythoncom.MakeTime() takes only ints and so cannot
make a time later than MakeTime(sys.maxint), which is
2038-01-19 04:14:07. This is a problem when I am
talking to a COM object that is expecting a date, and
the date is the maturity of a 50-year interest swap.
>>> pythoncom.MakeTime(sys.maxint)
<PyTime:2038-01-19 04:14:07>
>>> pythoncom.MakeTime(sys.maxint+1)
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
OverflowError: long int too large to convert to int
It appears that pythonwin.client's marshalling process
suppresses this error and substitutes
pythoncom.MakeTime(0).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1003844&group_id=78018
|