Accessing objects at runtime.
jacopo.pecci at gmail.com
Thu Sep 10 17:12:40 CEST 2009
> What exactly do you want to know? The names of existing attributes or
> their content? The latter is probably obvious to you and the former is
> easy, too. See hasattr, getattr and isinstance.
I want to know the value of the attributes.
What you suggest works when the program stops, objects are still in
memory and I could inspect all I want. BUT I don’t want to stop the
system. So even the shell would be blocked to type something.
More information about the Python-list