[New-bugs-announce] [issue20273] Argument Clinic: unhelpful crashes
Serhiy Storchaka
report at bugs.python.org
Wed Jan 15 21:17:32 CET 2014
New submission from Serhiy Storchaka:
Sometimes when Argument Clinic see something wrong, it raises exception and exit with printed traceback, instead of output helpful error message which points on line with illegal syntax.
I open this issue to report about such problems.
$ ./python Tools/clinic/clinic.py -f Modules/zlibmodule.c
Traceback (most recent call last):
File "Tools/clinic/clinic.py", line 3032, in <module>
sys.exit(main(sys.argv[1:]))
File "Tools/clinic/clinic.py", line 3028, in main
parse_file(filename, output=ns.output, verify=not ns.force)
File "Tools/clinic/clinic.py", line 1135, in parse_file
cooked = clinic.parse(raw)
File "Tools/clinic/clinic.py", line 1085, in parse
parser.parse(block)
File "Tools/clinic/clinic.py", line 2262, in parse
self.state(line)
File "Tools/clinic/clinic.py", line 2582, in state_parameter
value = eval(py_default)
File "<string>", line 1, in <module>
NameError: name 'zlib' is not defined
zlibmodule.c is almost same as after applying patch from issue20193 (with several clinic bugs already fixed).
----------
components: Demos and Tools
messages: 208188
nosy: larry, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Argument Clinic: unhelpful crashes
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20273>
_______________________________________
More information about the New-bugs-announce
mailing list