[pywin32-bugs] [ pywin32-Bugs-2860921 ] PyTime broken in python 3.1
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2009-09-17 20:14:10
|
Bugs item #2860921, was opened at 2009-09-18 00:14 Message generated for change (Tracker Item Submitted) made by dmitryam You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2860921&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: dmitryam (dmitryam) Assigned to: Nobody/Anonymous (nobody) Summary: PyTime broken in python 3.1 Initial Comment: Python 2.x and 3.x have different handling of pytime when you need to create a datetime object for COM from a python datetime object Here is the example which can show you the difference in 2.x and 3.1 import pywintypes import datetime x = datetime.datetime(2009,1,1) y = pywintypes.Time(x) print(type(x),type(y)) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2860921&group_id=78018 |