-
It would be great if you could convert PyTimes directly to datetime objects.
It would be even nicer if they *were* datetime objects, but that's a big change...
2008-10-31 15:05:02 UTC in Python for Windows extensions
-
I've attached a very simple patch that calculates the .msec value on request.
Note that since .msec has never returned anything but 0, and the builtin datetime object has a microsecond attribute, it may be worthwhile to repurpose this .msec attribute to mean "microseconds" rather than "seconds"
It would also be worthwhile to patch the various Time constructors to ensure that they preserve...
2008-10-30 15:06:01 UTC in Python for Windows extensions
-
A fairly simple workaround is to convert the PyTime directly to a float. For example, the following code converts to datetime:
def WinPyTimeToDate(pytime):
"""Converts a pywintypes.PyTime object into a date object"""
microseconds = int(((float(pytime)*24*60*60) % 1)*1000000)
return date(pytime.year, pytime.month, pytime.day, pytime.hour, pytime.minute, pytime.second, microseconds)
2008-10-30 14:47:54 UTC in Python for Windows extensions
-
PyTime stores times internally as DATE objects, which support fractional second resolution (since they are just a double number of days).
However the method to retrieve attributes including msec uses the Win32 VariantTimeToSystemTime function to convert the m_time to a SYSTEMTIME.
This function is known not to convert the fractional part of seconds (see...
2008-10-30 14:36:25 UTC in Python for Windows extensions
-
Transfered to a patch at https://sourceforge.net/tracker/index.php?func=detail&aid=1973296&group_id=26590&atid=387669.
2008-05-26 18:19:26 UTC in Web Services for Python
-
Originally filed this as https://sourceforge.net/tracker/index.php?func=detail&aid=1697819&group_id=26590&atid=387667 but it actually contains a patch...
ZSI.dispatch._Dispatch sometimes returns None instead of the result of sending a Fault
This simple patch returns something consistent
This patch applies cleanly to 2.1a1.
2008-05-26 18:17:16 UTC in Web Services for Python
-
This patch still applies and would be useful in 2.1.
2007-11-14 08:36:46 UTC in Web Services for Python
-
ZSI.dispatch._Dispatch sometimes returns None instead of the result of sending a Fault
This simple patch returns something consistent.
2007-04-10 17:04:49 UTC in Web Services for Python
-
Logged In: YES
user_id=221678
Rats, didn't see the 2.6 release...
I'll attach a new tarball with an updated version
This includes some fixes particular to 2.6 - you couldn't
run the setup script if it wasn't running with a DISPLAY etc
this now includes a MANIFEST.in to ensure that source
tarballs contain all the required files (and thus bdist_rpm
works)
2006-07-25 12:40:18 UTC in PyPE (Python Programmers Editor)
-
Logged In: YES
user_id=221678
Also attached the resulting tar.gz file (.zip can also be
produced) for simplicity of seeing what I've done
Just realised this should probably have gone under patches
but hopefully will be seen here...
2006-07-25 12:02:58 UTC in PyPE (Python Programmers Editor)