Skip to content

Commit

Permalink
Python backend - set attribute returns the value (fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
fglock committed Apr 13, 2011
1 parent 196fb17 commit 4774a7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Perlito/Python/Runtime.py
Expand Up @@ -505,7 +505,7 @@ def f_isa(self, name):
class Main:
def __init__(self, **arg):
self.__dict__.update(arg)
def __setattr__(v_self, k, v):
def f__setattr__(v_self, k, v):
v_self.__dict__[k] = v
return v_self.__dict__[k]
def f_bool(self):
Expand Down Expand Up @@ -542,7 +542,7 @@ def f_to_go_namespace(self, s):
class IO:
def __init__(v_self, **arg):
v_self.__dict__.update(arg)
def __setattr__(v_self, k, v):
def f__setattr__(v_self, k, v):
v_self.__dict__[k] = v
return v_self.__dict__[k]
def f_bool(self):
Expand Down
4 changes: 2 additions & 2 deletions lib5/Perlito/Python/Runtime.py
Expand Up @@ -505,7 +505,7 @@ def f_isa(self, name):
class Main:
def __init__(self, **arg):
self.__dict__.update(arg)
def __setattr__(v_self, k, v):
def f__setattr__(v_self, k, v):
v_self.__dict__[k] = v
return v_self.__dict__[k]
def f_bool(self):
Expand Down Expand Up @@ -542,7 +542,7 @@ def f_to_go_namespace(self, s):
class IO:
def __init__(v_self, **arg):
v_self.__dict__.update(arg)
def __setattr__(v_self, k, v):
def f__setattr__(v_self, k, v):
v_self.__dict__[k] = v
return v_self.__dict__[k]
def f_bool(self):
Expand Down

0 comments on commit 4774a7e

Please sign in to comment.