List-type attributes and name strings
Lie Ryan
lie.1296 at gmail.com
Thu Jul 1 07:20:13 EDT 2010
On 07/01/10 20:56, egbert wrote:
>>>> self.__dict__[namestring][keystring]=value
try this:
getattr(self, namestring)[keystring] = value
More information about the Python-list
mailing list