Re: [Jython-dev] imports with parser type eval
by Mark Proctor other posts by this author
Oct 21 2004 11:04PM messages near this date
Re: [Jython-dev] imports with parser type eval
|
Re: [Jython-dev] imports with parser type eval
Once I have my reference to globals, is the PythonInterpretor elegible
for garbage collection? or does globals have references back to the
PythonInterpretor?
Mark
Samuele Pedroni wrote:
> Mark Proctor wrote:
>
> > Yes if I could pass the imports via the dict that would be great then
> > I can continue to use Py.runCode - which I assume is cheaper than
> > having lots of PythonInterpretors - anyone care to explain the inner
> > workings here? I know how to bind a single class type via the dict
> > but not how to do it for statements like "from module import *"
> >
>
> if I understand you have this situation, various instances of
>
> <imports>
> suite with imports?
> </imports>
>
> <functions>
> suite with func defs
> </functions>
>
> <condition>
> expr
> </contidtion>
>
> <consequence>
> suite
> </consequence>
>
> you execute imports and functions in a dict, you store it away,
>
> then you compile condition and consequence to code and store those too,
>
> and when necessary you execute them passing the parameters as locals and
> the dict populated in the first step as globals.
>
>
>
>
>
>
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Jython-dev mailing list
Jython-dev@[...].net
https://lists.sourceforge.net/lists/listinfo/jython-dev
|