Message162690
| Author |
roger.serwy |
| Recipients |
Roy.Fox, ned.deily, python-dev, roger.serwy, terry.reedy |
| Date |
2012年06月12日.19:33:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1339529633.72.0.550297031964.issue12510@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|