Posted By

tclancy on 04/27/10


Tagged


Versions (?)

Set Dynamic Attribute


 / Published in: Python
 

URL: http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html#the-dynamic-dict

  1. C.__dict__['classattr'] = value

Report this snippet  

You need to login to post a comment.