comtypes 0.5.2 is out.
Summary of changes:
- fixed occasionally double-free of BSTR strings.
- fixed the order of arguments in event handlers (MS Office, autocad, ...)
- better caching of generated code.
These are the changes since the 0.5.1 release:
2008-09-19 Thomas Heller <[EMAIL PROTECTED]>
* Bump version number to 0.5.2.
Released comtypes-0.5.2.
* COMError nows prints the contained hresult in hex.
2008-09-18 Thomas Heller <[EMAIL PROTECTED]>
* Changed the version-checking code that the code generator
creates. Reintroduced (sorry, Anthony!) the comparison of
timestamps, if both the typelib and the generated module are
files.
2008-09-10 Thomas Heller <[EMAIL PROTECTED]>
* In comtypes\_comobject.py, Invoke: Named arguments passed to
COMObject.IDispatch_Invoke are now (hopefully!) unpacked
correctly. This should fix the order of parameters passed to MS
office (Word, Excel) and other (autocad?) event handlers.
2008-09-04 Thomas Heller <[EMAIL PROTECTED]>
* Removed the code that compared the timestamps of Python wrapper
modules and type library files - this approach was totally broken.
Generated modules are out of date if they were created by the code
generator module with a different version number; the version
number is now checked when a module is imported.
The current mechanism also works correctly for generated modules
in frozen scripts.
Thanks to Anthony Tuininga.
2008-08-27 Thomas Heller <[EMAIL PROTECTED]>
* Avoid double-free of BSTR strings under certain conditions.
* A NULL handler is now added to the comtypes logger; this
prevents messages like 'No handlers could be found for logger
"comtypes"' when an error message is logged and the logging module
is not configured.
https://sourceforge.net/tracker/index.php?func=detail&aid=2066024&group_id=115265&atid=692940
2008-08-20 Thomas Heller <[EMAIL PROTECTED]>
* Changed the codegenerator to generate 'c_longlong' instead of
'c_float' for CURRENCY. This is not really correct since the
CURRENCY value is a fixed point integer scaled by a factor of
10000, but at least the code will not crash. Need a test case.
* comtypes.server.register: Add an optional 'executable' parameter
to Registrar.register(cls), can be used to override the executable
image name that comtypes detects itself. Patch by Michael
Robellard.
2008-08-15 Thomas Heller <[EMAIL PROTECTED]>
* comtypes.client._find_gen_dir() improved (based on a patch and
helpful thoughts of Stefan Schukat): If comtypes.gen is not a
directory in the filesystem, or not writeable by users, a new
directory is created which will cache generated code. This could
be the case if comtypes is installed in a directory that has no
write permissions by the urrent user, if the comtypes package
resides in a zip-archive or a zipped egg, or if comtypes is used
in a py2exe'd script.
'%APPDATA%\<username>\Python\Python<XY>\comtypes_cache'
is used for a normal Python script, for a py2exe frozen executables
the directory will be
'%TEMP%\comtypes_cache\<imagebasename>-<XY>'
where <imagebasename> is the basename without extension of the
frozen executable image, and <XY> is the major and minor Python
version number, '25' for example.
This makes sure that generated modules will *always* cached in the
file system.
2008-08-13 Thomas Heller <[EMAIL PROTECTED]>
* comtypes\automation.py: Allow this module to be imported on
Windows CE. Using safearrays on Windows CE will not work. I'm not
sure if they are used much.
2008-08-08 Thomas Heller <[EMAIL PROTECTED]>
* Implement InterlockedIncrement and InterlockedDecrement for
win64.
--
Enjoy,
Thomas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
comtypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/comtypes-users