summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-03-30 06:40:17 (GMT)
committerGeorg Brandl <georg@python.org>2008-03-30 06:40:17 (GMT)
commita48f3ab8951fa97844f2a4fa368483af968b7b73 (patch)
tree59349d2cbbcb23204391adcd8c1a37896d2ab16e /Parser
parentc15317efcd21015a2e076eb0413043c74d84056f (diff)
downloadcpython-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.asdl7
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)