Message 162690 - Python tracker
The _self_pat RE needs to be changed to just remove the first argument. Presently, another bug exists with the current implementation:
>>> class A:
def t(self, self1, self2):
pass
>>> a = A()
>>> a.t(
gives "(1,2)" as the calltip, instead of "(self1, self2)" for 3.x. Python 2.7 gives the correct calltip.
The attached patch modifies _self_pat to remove only the first argument, modifies the classmethod test, and adds a test for "notself", as Terry requested in msg162511.