Roger Serwy <[email protected]> added the comment:
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.
----------
Added file: http://bugs.python.org/file25942/issue12510_self_pat.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12510>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com