[issue7883] CallTips.py _find_constructor does not work

2014-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: THanks for reporting this. #12520 tripled the number of tests in CallTips.py and #20122 moved them to test_calltips.py. I think they cover this case and the tests proposed. #16630 added a few more tests and patched CallTips.py to make them pass. If you find an

[issue7883] CallTips.py _find_constructor does not work

2014-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 3.x changes will not affect 2.7, which currently still uses _find_constructor. I suspect the .__func__ is needed for old-style classes, but I will try to check. -- versions: +Python 3.4 -Python 3.2 ___ Python tr

[issue7883] CallTips.py _find_constructor does not work

2014-01-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Move CallTips tests to idle_tests ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7883] CallTips.py _find_constructor does not work

2013-05-30 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7883] CallTips.py _find_constructor does not work

2013-05-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: #12520 deleted _find_constructor in 3.x as it works with, but only with old-style classes (gone in 3.x) and just uses getattr(ob, '__init__', None). I believe the tests in this patch duplicate existing tests at the bottom of CallTips.py (increased from 10 to 3

[issue7883] CallTips.py _find_constructor does not work

2012-07-09 Thread Roger Serwy
Roger Serwy added the comment: Issue12510 fixes the issues listed here. I am leaving this issue open for discussing the test provided by Bernt. -- nosy: +terry.reedy resolution: -> fixed ___ Python tracker __

[issue7883] CallTips.py _find_constructor does not work

2011-12-22 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: Attached is Lib/test/test_idlelib.py, containing a unit test for the issue. -- Added file: http://bugs.python.org/file24075/test_idlelib.py ___ Python tracker

[issue7883] CallTips.py _find_constructor does not work

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: The patch works for me as well against 3.3a0. Are there any cases where "__init__.__func__" would work? -- nosy: +serwy versions: +Python 3.3 ___ Python tracker

[issue7883] CallTips.py _find_constructor does not work

2010-02-08 Thread Brian Curtin
Brian Curtin added the comment: That change works for me. -- nosy: +brian.curtin priority: -> normal stage: -> test needed ___ Python tracker ___ __

[issue7883] CallTips.py _find_constructor does not work

2010-02-08 Thread Bernt Røskar Brenna
New submission from Bernt Røskar Brenna : 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 ==