[issue20827] IDLE : Display function argument list in ClassBrowser
Saimadhav Heblikar
report at bugs.python.org
Wed Mar 12 15:47:25 CET 2014
Saimadhav Heblikar added the comment:
>>1. Idle is getting out of the business of formatting signatures. If we >>use inspect, '(...)' should simply be replaced (in 3.3+) by >>str(inspect.signature(ob)). (I plan to change calltips to do this >>instead of using two older inspect functions.) Using inspect creates >>the problems of getting ob.
This means instead of manually formatting,we use inspect.signature()?(Shall i try to first it on calltips and get back with the result?)
>>3. The patch does not handle nested classes (or their methods). If >>nested classes are found in the dictionary of 'methods' of the >>enclosing class, this should be possible to keep track of.
I think this is because pyclbr is responsible for parsing the source.(This patch only tries to extract the signature,given the method/class).issue1612262 also seems to convey that pyclbr is unable to detect nested classes.
So i will try to make changes to pyclbr , to detect nested classes.
After i complete the above two,i will report here and try to work on
>>- add popup menu with more options (e.g. doc strings, base classes, >>imports)" possible. Docstrings could be kept as a view objest with >>start and stop positions until requested.
Also, your suggestion to import the class/methods only once ,will improve the performance,especially on bigger files.I'll modify the patch to reflect this too.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20827>
_______________________________________
More information about the Python-bugs-list
mailing list