Message 208188 - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Content
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).