Search code examples
pythonapache-commons

Python equivalent of PropertyUtilsBean


I was wondering, is there a Python equivalent to Apache commons' PropertyUtilsBean?

Edit:
For example, I'd like to be able to make this assignment

x.y[2].z = v

given "y[2].z" as a string.
Please note, I'm asking just because I'd like to not reinvent the wheel :)


Solution

  • Why do you need such a thing when there's exec?