diff options
author | Georg Brandl <georg@python.org> | 2008-03-30 06:40:17 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-03-30 06:40:17 (GMT) |
commit | a48f3ab8951fa97844f2a4fa368483af968b7b73 (patch) | |
tree | 59349d2cbbcb23204391adcd8c1a37896d2ab16e /Parser | |
parent | c15317efcd21015a2e076eb0413043c74d84056f (diff) | |
download | cpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.zip cpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.tar.gz cpython-a48f3ab8951fa97844f2a4fa368483af968b7b73.tar.bz2 |
Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/Python.asdl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Parser/Python.asdl b/Parser/Python.asdl index 250e9ac..a4394c9 100644 --- a/Parser/Python.asdl +++ b/Parser/Python.asdl @@ -98,11 +98,8 @@ module Python version "$Revision$" comprehension = (expr target, expr iter, expr* ifs) -- not sure what to call the first argument for raise and except - -- TODO(jhylton): Figure out if there is a better way to handle - -- lineno and col_offset fields, particularly when - -- ast is exposed to Python. - excepthandler = (expr? type, expr? name, stmt* body, int lineno, - int col_offset) + excepthandler = ExceptHandler(expr? type, expr? name, stmt* body) + attributes (int lineno, int col_offset) arguments = (expr* args, identifier? vararg, identifier? kwarg, expr* defaults) |