enthought / comtypes

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix `client.dynamic._Dispatch.QueryInterface`

junkmd opened this issue · comments

THIS IS FOR drop_py2 PLAN! Please see #392.

The client.dynamic._Dispatch.QueryInterface is currently only allowed to be passed a variable argument.

def QueryInterface(self, *args):
"QueryInterface is forwarded to the real com object."
return self._comobj.QueryInterface(*args)

However, this is a wrapper method for IUnknown.QueryInterface, so I want to change it to a similar argument.

def QueryInterface(self, interface, iid=None):

It does not change the name of the named arguments that were existing, so I don't think it will break backward compatibility.

I will work on this.