On Wed, Apr 20, 2011 at 6:47 PM, Udi Oron <[email protected]> wrote:

> 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
>

I can do both of these things, but I'm not sure if they will be necessary. I
mean, what could someone do in an `__init__.py` module that could interfere
with module-tasting?


Ram.
_______________________________________________
Python-il mailing list
[email protected]
http://hamakor.org.il/cgi-bin/mailman/listinfo/python-il

לענות