New submission from Bernt Røskar Brenna <[email protected]>:
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)
----------
components: IDLE
messages: 99043
nosy: Bernt.Røskar.Brenna
severity: normal
status: open
title: CallTips.py _find_constructor does not work
type: behavior
versions: Python 3.1, Python 3.2
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7883>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com