New submission from Saimadhav Heblikar: The proposed patch 1.implements a TODO for ClassBrowser . it was (sic)show function argument list? (have to do pattern matching on source).my patch does not do pattern matching in the real sense of the phrase.it uses "imp" to import the module source and "inspect.getargspec" to get the function argument list.a new function called FormatArgumentList() is used to beautify and display only the relevant arguments. in short,it displays the arguments for that function.previously, it was def foo(...) now it is, def foo(bar1,bar2,*spam,**spam2,defaults=(5,))
2.Adds a human test dialog for ClassBrowser. Currently there are no specific tests for ClassBrowser. hence,i have also created test stubs for ClassBrowser.(ns:it is NOT present in this patch). One way or another, will send in the patch which will add tests.(i'm waiting to know whether we go forward on 1 and 2). ---------- components: IDLE files: classbrowser-improvments.patch keywords: patch messages: 212555 nosy: Todd.Rovito, sahutd, taleinat, terry.reedy priority: normal severity: normal status: open title: IDLE : Display function argument list in ClassBrowser type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file34268/classbrowser-improvments.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20827> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com