[python-win32] win32com, server/policy.py bug? policy.py Line 639
For the following code, the method "GetPerson" has no explicit argument (except self). class MyCOMObject: _public_methods_ = ["GetPerson"] #_reg_clsid_ = '{44ee76c7-1290-4ea6-8189-00d5d7cd712a}' #_reg_desc_ = "My COM server" #_reg_progid_ = "MyCOMObject" def get_person(self):
Re: [python-win32] win32com, server/policy.py bug? policy.py Line 639
A better fix is to change Line 639 of win32com/server/policy.py to the following: import inspect if len(inspect.getfullargspec(func).args) == 1: return func() else: return func(*args) Then
