Ben Rowland

Results 35 comments of Ben Rowland

@junkmd tricky to import `npsupport` when using `ndarray` as an argument because how do you test if something is an `ndarray` unless you have numpy.ndarray imported already (which is exactly...

Thanks, @cfarrow, but just to be clear, does that mean you would support a breaking change where `numpy` support is only included with an explicit `enable_numpy_interop()` call - what would...

Ok, I will have a look into making this work. It might still be possible to get `comtypes` to accept an `ndarray` as an input argument and simply send it...

Hi all, I started working on this project this morning and began with running the tests on the latest master branch using `python -m unittest discover -v -s ./comtypes/test -t...

Yep, I figured something like that would probably be the case - I have some ideas about trying to fake that but that will have to wait for another time....

Well, that was my last contribution, so it could well be at fault :-). I think that the type code `"

@cfarrow, so I have dug a little deeper into the "

Ok, a little bit more information: it looks like this came in with np 1.15.0 which changed the way the PEP3118 buffer protocol was used to create arrays, see https://github.com/numpy/numpy/issues/11150....

I think we will still need numpy support for the `safearray_as_ndarray` direction at the very least, as that has to have numpy available to pass the buffer into, and at...

Hi @mhammond, thanks for the input. Yes, the generated file correctly picks up the third param and will supply a "not provided" value if it isn't given. Note that I...