Accessing objects at runtime.

Jochen Schulz ml at well-adjusted.de
Thu Sep 10 11:46:47 EDT 2009


jacopo:
> 
>> 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.

Ah, now I get it: you want to attach to a running process and inspect it
interactively? -Sorry, then I cannot answer you question.

J.
-- 
When I get home from the supermarket I don't know what to do with all the
plastic.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20090910/9f909ac5/attachment-0001.sig>


More information about the Python-list mailing list