Simple or Impossible in Python... dynamically dereferencing a class attribute

Bill Sneddon bsneddonNOspam at yahoo.com
Wed Dec 24 12:06:40 EST 2003


Bruce Wolk wrote:


>>
> something like...
> 
> setattr(myDict['one'],myletter,9)
> 

This works!!! sorry for wasting bandwidth with such an easy question.
but thank you for your answer.
Merry Christmas!







More information about the Python-list mailing list