changeset 177:4ed3600a9448

runtime_sugar: do not override arguments Just add an argument to the front of the list
author Sigurd Meldgaard <stm@daimi.au.dk>
date Mon, 14 Dec 2009 15:25:56 +0100
parents f00f9b9dd69d
children 99ac425d17d3
files pysmcl/runtime_sugar.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pysmcl/runtime_sugar.py	Mon Dec 14 15:24:53 2009 +0100
+++ b/pysmcl/runtime_sugar.py	Mon Dec 14 15:25:56 2009 +0100
@@ -21,7 +21,8 @@
         return r
 
     name = make_runtime_name(f, ctx=ast.Param())
-    f.args.args = [name]
+    f.args.args.insert(0, name)
+    print f.args
 
     class Rewriter(ast.NodeTransformer):