Issue7883
Created on 2010-02-08 12:11 by Bernt.Røskar.Brenna, last changed 2010-02-08 15:47 by brian.curtin.
|
msg99043 - (view) |
Author: Bernt Røskar Brenna (Bernt.Røskar.Brenna) |
Date: 2010-02-08 12:11 |
|
Test case:
In IDLE python shell:
>>> from http.client import HTTPConnection
>>> c = HTTPConnection(
Notice that the call tip is an empty parenthesis.
This patch works for me:
[/tmp/py3k/Lib/idlelib]
$ svn diff
Index: CallTips.py
===================================================================
--- CallTips.py (revision 78103)
+++ CallTips.py (working copy)
@@ -116,7 +116,7 @@
def _find_constructor(class_ob):
"Find the nearest __init__() in the class tree."
try:
- return class_ob.__init__.__func__
+ return class_ob.__init__
except AttributeError:
for base in class_ob.__bases__:
init = _find_constructor(base)
|
|
msg99048 - (view) |
Author: Brian Curtin (brian.curtin) * |
Date: 2010-02-08 15:47 |
|
That change works for me.
|
|
| Date |
User |
Action |
Args |
| 2010-02-08 15:47:25 | brian.curtin | set | priority: normal
nosy:
+ brian.curtin messages:
+ msg99048
stage: test needed |
| 2010-02-08 12:11:42 | Bernt.Røskar.Brenna | create | |
|