I find global getattr() function awkward when reading code.
Me too.
What is the reason there's no "natural" syntax allowing to accessattributes with names not being valid Python identifiers in a similar way to other attributes?
There is. Just use a dictionary. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list