diff Parser/Python.asdl @ 46231:81ee270a6eb5

Merged revisions 62047 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r62047 | georg.brandl | 2008-03-29 23:40:17 -0700 (Sat, 29 Mar 2008) | 2 lines Patch #2511: Give the "excepthandler" AST item proper attributes by making it a Sum. ........
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 31 Mar 2008 05:14:30 +0000
parents 981ecc526703
children c7abfab4dcdb
line wrap: on
line diff
--- a/Parser/Python.asdl	Mon Mar 31 04:47:25 2008 +0000
+++ b/Parser/Python.asdl	Mon Mar 31 05:14:30 2008 +0000
@@ -101,11 +101,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, identifier? name, stmt* body, int lineno,
-	                 int col_offset)
+	excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body)
+	                attributes (int lineno, int col_offset)
 
 	arguments = (arg* args, identifier? vararg, expr? varargannotation,
                      arg* kwonlyargs, identifier? kwarg,