Message162248
| Author |
terry.reedy |
| Recipients |
Roy.Fox, ned.deily, python-dev, roger.serwy, terry.reedy |
| Date |
2012年06月04日.03:01:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1338778914.21.0.974819979395.issue12510@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
i12510.test.diff (for Python 3 only) does the following:
* Turn method CallTips.get_entity into a module function as it does not use the self parameter and is therefore not really an instance method.
* Delete the erroneous _find_constructor function. Even if it were fixed, it is unnecessary at least in 3.x. Class attribute lookup already does the superclass search duplicated in this function and should find object.__init__ if nothing else. (I defaulted to None anyway in case of an unforeseen problem, such as a type subclass that somehow disables the lookup.)
* In get_argspec, remove the lambda stuff that resulted in all classes getting a spurious '()' line. With the fix to retrieving .__init__, it never gets used and is not needed anyway.
* Only delete 'self' from the argument list for classes and bound methods where it is implicit and not to be explicity entered.
* Increase tests from 13 to 37.
* Modernize and re-organize tests with an eye to becoming part of an idlelib test suite.
With the increased number of tests, I am pretty confident in the patch, but I would not mind if you glance at it and try it out on Linux. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年06月04日 03:01:54 | terry.reedy | set | recipients:
+ terry.reedy, ned.deily, roger.serwy, python-dev, Roy.Fox |
| 2012年06月04日 03:01:54 | terry.reedy | set | messageid: <1338778914.21.0.974819979395.issue12510@psf.upfronthosting.co.za> |
| 2012年06月04日 03:01:53 | terry.reedy | link | issue12510 messages |
| 2012年06月04日 03:01:52 | terry.reedy | create |
|