Accessing objects at runtime.

Chris Colbert sccolbert at gmail.com
Mon Sep 14 02:54:10 EDT 2009


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.pecci at gmail.com> wrote:
>
>>    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 printing out HTML strings with interpolated data.
>
>
> Thank you Gary,
>
> just to be sure I understood correctly:
> with this solution, in order to inspect an object I would have to load
> a web page at a specific URL. That URL,
> through a separate thread, would access the object on the fly and
> display the content in a web page?!
> Is there a reason to link objects to different URLs or I could link
> many of them to the same URL?
>
> Thanks, Jacopo
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list