Message99043
| Author |
Bernt.Røskar.Brenna |
| Recipients |
Bernt.Røskar.Brenna |
| Date |
2010年02月08日.12:11:41 |
| SpamBayes Score |
2.4502306e-08 |
| Marked as misclassified |
No |
| Message-id |
<1265631103.87.0.399117397925.issue7883@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年02月08日 12:11:43 | Bernt.Røskar.Brenna | set | recipients:
+ Bernt.Røskar.Brenna |
| 2010年02月08日 12:11:43 | Bernt.Røskar.Brenna | set | messageid: <1265631103.87.0.399117397925.issue7883@psf.upfronthosting.co.za> |
| 2010年02月08日 12:11:42 | Bernt.Røskar.Brenna | link | issue7883 messages |
| 2010年02月08日 12:11:41 | Bernt.Røskar.Brenna | create |
|