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

2023-07-01 11:58:00 -04:00
setattr(e, name, value)