Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python set attribute by string name

setattr(some_object, 'some_attribute', 42)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #set #attribute #string
ADD COMMENT
Topic
Name
3+5 =