Re: Accessing objects at runtime.

2009-09-14 Thread jacopo
On Sep 14, 9:54 am, Chris Colbert 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 implemented this in a mo

Re: Accessing objects at runtime.

2009-09-13 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 wrote: > >>    You might consider running a BaseHTTPServer in

Re: Accessing objects at runtime.

2009-09-13 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 pri

Re: Accessing objects at runtime.

2009-09-11 Thread Gary Duzan
In article <228b-379d-4fe4-956b-cf803541a...@37g2000yqm.googlegroups.com>, jacopo 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 the future). The sy

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

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 a

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