Skip to content Skip to sidebar Skip to footer
Showing posts with the label Introspection

How To Find The Name Of A Property From A Python Class

I'm trying to get a property to print the name that it's assigned to in the owner class in … Read more How To Find The Name Of A Property From A Python Class

Why Use Getattr() Instead Of __dict__ When Accessing Python Object Attributes?

In source examples and SO answers that have some degree of Python object introspection, a common pa… Read more Why Use Getattr() Instead Of __dict__ When Accessing Python Object Attributes?

Looping Over A Python / Ironpython Object Methods

What is the proper way to loop over a Python object's methods and call them? Given the object: … Read more Looping Over A Python / Ironpython Object Methods