Message208188
| Author |
serhiy.storchaka |
| Recipients |
larry, serhiy.storchaka |
| Date |
2014年01月15日.20:17:32 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1389817052.38.0.962470958288.issue20273@psf.upfronthosting.co.za> |
| In-reply-to |
| 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). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年01月15日 20:17:32 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, larry |
| 2014年01月15日 20:17:32 | serhiy.storchaka | set | messageid: <1389817052.38.0.962470958288.issue20273@psf.upfronthosting.co.za> |
| 2014年01月15日 20:17:32 | serhiy.storchaka | link | issue20273 messages |
| 2014年01月15日 20:17:32 | serhiy.storchaka | create |
|