[issue19810] adding an feature to python interpreter
New submission from madan ram: I found that it will be useful to show the list of function arguments using inspect module. When the function executed by the user in interpreter as TypeError. ex: - def foo(a,b=4,c=hello): ... print a,b,c foo() Traceback (most recent call last): File stdin, line 1, in module TypeError: foo() takes at least 2 arguments (0 given) Rather the displaying like above it is will be much more readable to show as below. foo() Traceback (most recent call last): File stdin, line 1, in module TypeError: foo() takes at least 1 arguments args=['a', 'b', 'c'], varargs=None, keywords=None, defaults=(4, 'hello') (0 given) This will be advantageous when the user has forgotten what parameter to use for builtin function when working offline. -- components: Interpreter Core messages: 204569 nosy: eric.araujo, ezio.melotti, georg.brandl, gpolo, madan.ram priority: normal severity: normal status: open title: adding an feature to python interpreter versions: Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19810 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19810] Adding a feature to python interpreter
Changes by madan ram madan_...@rocketmail.com: -- title: adding an feature to python interpreter - Adding a feature to python interpreter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19810 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19810] Adding a feature to python interpreter
Changes by Georg Brandl ge...@python.org: -- nosy: -georg.brandl versions: -Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19810 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19810] Adding a feature to python interpreter
R. David Murray added the comment: That's much less readable than the output from pfydoc, which the user can access easily (via either help at the interpreter prompt or pydoc at the shell prompt). So I'm -1 on this proposed change. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19810 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com