]> granicus.if.org Git - python/commit
Add lineno, col_offset to excephandler to enable future fix for
authorJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Apr 2006 04:00:23 +0000 (04:00 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Tue, 4 Apr 2006 04:00:23 +0000 (04:00 +0000)
commit2f327c14eb998e8796a3775aa6a7aade14e97004
tree3de98142ca2b873c0cfb25f630c7dda2d90f96fa
parentcb30f97bd3bdea2e884e8faec23751b39db4c0b3
Add lineno, col_offset to excephandler to enable future fix for
tracing/line number table in except blocks.

Reflow long lines introduced by col_offset changes.  Update test_ast
to handle new fields in excepthandler.

As note in Python.asdl says, we might want to rethink how attributes
are handled.  Perhaps they should be the same as other fields, with
the primary difference being how they are defined for all types within
a sum.

Also fix asdl_c so that constructors with int fields don't fail when
passed a zero value.
Include/Python-ast.h
Lib/test/test_ast.py
Parser/Python.asdl
Parser/asdl_c.py
Python/Python-ast.c
Python/ast.c