[Python-il] Statically analyzing a Python module to find assignments

Udi Oron udioron at gmail.com
Wed Apr 20 19:47:57 IDT 2011


Hi!

On Fri, Apr 15, 2011 at 12:45 PM, cool-RR <cool-rr at cool-rr.com> wrote:

> And I want GarlicSim to be able to get all of these things: The docstring,
> the name, the tags and the version. And I want to show them in this widget<http://dl.dropbox.com/u/1927707/SimpackSelectionDialog.png>.
> But I want to do it without importing the module, because `__init__.py`
> might import the entire package which can be heavy. (I want to do this
> process for many heavy simpacks.)
>

Since these are SimPacks and not arbitrary modules, how about writing in the
docs "GarlicSim will import your module, don't do anything heavy in your
module init".
(And maybe even inject a *__garlicsim_tsating__* flag to the module)

Udi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://hamakor.org.il/pipermail/python-il/attachments/20110420/2247c82b/attachment.htm>


More information about the Python-il mailing list