setattr(x, y, e)
x@@y = e
This is equivalent to the Python setattr function. Note that e is converted to a Python object using toPython.
|
|
|
As with getattr, when using the shortcut @@, y need not be a string.
|
|
The object setattr is a method function.