At Friday 23/2/2007 22:12, Charles D Hixson wrote: > This is going to take a bit of work (I've gone over the example 5 times, > and it's still not quite making > sense), but this looks like just what I was hoping to find.
Just remember that: obj.name = value is the same as: setattr(obj, "name", value) (notice the quoted name), and likewise: x = obj.name is the same as: x = getattr(obj, "name") They are described in http://docs.python.org/lib/built-in-funcs.html -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list