Re: Accessing objects at runtime.

2009-09-14 Thread jacopo
   You might consider running a BaseHTTPServer in a separate thread which has references to your objects of interest and exporting the data through a web interface. Using a RESTful approach for mapping URLs to objects within your system, a basic export of the data can be as simple as

Re: Accessing objects at runtime.

2009-09-14 Thread Chris Colbert
why not just pawn your processing loop off onto a child thread and give yourself a hook (function) that you can call that return whatver info you what. Run the script in ipython, problem solved. On Mon, Sep 14, 2009 at 7:57 AM, jacopo jacopo.pe...@gmail.com wrote:    You might consider running

Re: Accessing objects at runtime.

2009-09-14 Thread jacopo
On Sep 14, 9:54 am, Chris Colbert sccolb...@gmail.com wrote: why not just pawn your processing loop off onto a child thread and give yourself a hook (function) that you can call that return whatver info you what. Run the script in ipython, problem solved. thank you Chris, I have just

Re: Accessing objects at runtime.

2009-09-11 Thread Gary Duzan
In article 228b-379d-4fe4-956b-cf803541a...@37g2000yqm.googlegroups.com, jacopo jacopo.pe...@gmail.com wrote: I have a system comprising many objects cooperating with each others. (For the time being, everything is running on the same machine, in the same process but things might change in

Accessing objects at runtime.

2009-09-10 Thread jacopo
I have a system comprising many objects cooperating with each others. (For the time being, everything is running on the same machine, in the same process but things might change in the future). The system starts a infinite loop which keeps triggering operations from the instantiated objects. I

Accessing objects at runtime.

2009-09-10 Thread jacopo
I have a system comprising many objects cooperating with each others. (For the time being, everything is running on the same machine, in the same process but things might change in the future). The system starts a infinite loop which keeps triggering operations from the instantiated objects. I

Re: Accessing objects at runtime.

2009-09-10 Thread Jochen Schulz
jacopo: I would like to find a way to inspect the objects at run time. In other words I would like to check certain attributes in order to understand in which status the object is. What exactly do you want to know? The names of existing attributes or their content? The latter is probably

Re: Accessing objects at runtime.

2009-09-10 Thread 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

Re: Accessing objects at runtime.

2009-09-10 Thread Jochen Schulz
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,