dynamicly updating an objects fields

Uwe Lauth Uwe.Lauth at cursor.de
Wed Aug 31 02:00:20 EDT 2005


kyle.tk wrote:
> I want to make a function that will work like this:
> 
> def updateField(object, fieldName, newValue):
> 	object.fieldName = newValue

This function already exists in python.
It is called settattr.

Regards
Uwe



More information about the Python-list mailing list