Setting an attribute without calling __setattr__()

Arnaud Delobelle arnodel at googlemail.com
Sat Apr 26 01:37:19 EDT 2008


Joshua Kugler <jkugler at bigfoot.com> writes:

[...]
>             self.me = []
>             for v in obj:
>                 self.me.append(ObjectProxy(v))

Note that is could be spelt:

self.me = map(ObjectProxy, v)

-- 
Arnaud



More information about the Python-list mailing list