diff Python/compile.c @ 36786:57322cb2ca11 legacy-trunk

Patch #1440601: Add col_offset attribute to AST nodes.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 01 Mar 2006 22:49:05 +0000
parents 1daa199b784b
children 7285c37d7633
line wrap: on
line diff
--- a/Python/compile.c	Wed Mar 01 22:45:36 2006 +0000
+++ b/Python/compile.c	Wed Mar 01 22:49:05 2006 +0000
@@ -3635,7 +3635,7 @@
 	switch (e->kind) {
 		case Attribute_kind:
 		auge = Attribute(e->v.Attribute.value, e->v.Attribute.attr,
-				 AugLoad, e->lineno, c->c_arena);
+				 AugLoad, e->lineno, e->col_offset, c->c_arena);
 		if (auge == NULL)
 		    return 0;
 		VISIT(c, expr, auge);
@@ -3646,7 +3646,7 @@
 		break;
 	case Subscript_kind:
 		auge = Subscript(e->v.Subscript.value, e->v.Subscript.slice,
-				 AugLoad, e->lineno, c->c_arena);
+				 AugLoad, e->lineno, e->col_offset, c->c_arena);
 		if (auge == NULL)
 		    return 0;
 		VISIT(c, expr, auge);