RosettaCodeData/Task/Add-a-variable-to-a-class-instance-at-runtime/Python/add-a-variable-to-a-class-instance-at-runtime-3.py

2 lines
27 B
Python
Raw Permalink Normal View History

2013-04-10 14:58:50 -07:00
setattr(e, name, value)