Hi!

On Fri, Apr 15, 2011 at 12:45 PM, cool-RR <[email protected]> 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
_______________________________________________
Python-il mailing list
[email protected]
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il

לענות