diff Parser/Python.asdl @ 46200:2ff88ae9850c legacy-trunk

Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum.
author Georg Brandl <georg@python.org>
date Sun, 30 Mar 2008 06:40:17 +0000
parents 393822f2ef90
children 40c8c35492f1
line wrap: on
line diff
--- a/Parser/Python.asdl	Sat Mar 29 19:11:52 2008 +0000
+++ b/Parser/Python.asdl	Sun Mar 30 06:40:17 2008 +0000
@@ -98,11 +98,8 @@
 	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)