homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:54roger.serwysetrecipients: + roger.serwy, terry.reedy, ned.deily, python-dev, Roy.Fox
2012年06月12日 19:33:53roger.serwysetmessageid: <1339529633.72.0.550297031964.issue12510@psf.upfronthosting.co.za>
2012年06月12日 19:33:52roger.serwylinkissue12510 messages
2012年06月12日 19:33:50roger.serwycreate

AltStyle によって変換されたページ (->オリジナル) /