[pywin32-bugs] [ pywin32-Patches-898555 ] Patch to use arbitrarely sized Safearray
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2004-04-25 04:13:05
|
Patches item #898555, was opened at 2004-02-17 19:42 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=898555&group_id=78018 Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Stefan Schukat (sschukat) Assigned to: Nobody/Anonymous (nobody) Summary: Patch to use arbitrarely sized Safearray Initial Comment: In the current implementation you can only recieve arbitrary sized SAFEARRAYs via pythoncom. If you want to send these SAFEARRAYs there is a limitation that all dimensions must have the same size. I patched the oleargs.cpp to calculate the dimension of any Python sequence to be converted, so that any sized sequence can be transported. In the attached file you find a test COM server, a python test script and the changed oleargs.cpp ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2004-04-25 14:13 Message: Logged In: YES user_id=14198 Thanks Stefan - I checked this in. I had to make a couple of changes to your code to allow all the old tests to pass - specifically, handling zero-size sequences and buffer objects as special cases. I've also checked most of your test code into our existing COM test harness. Thanks! Sorry for the delay. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=898555&group_id=78018 |