Message162690
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. |
|
Date |
User |
Action |
Args |
2012-06-12 19:33:54 | roger.serwy | set | recipients:
+ roger.serwy, terry.reedy, ned.deily, python-dev, Roy.Fox |
2012-06-12 19:33:53 | roger.serwy | set | messageid: <1339529633.72.0.550297031964.issue12510@psf.upfronthosting.co.za> |
2012-06-12 19:33:52 | roger.serwy | link | issue12510 messages |
2012-06-12 19:33:50 | roger.serwy | create | |
|