[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] [report] modules Pygame imports
On Wed, Dec 17, 2008 at 1:29 PM, Lenard Lindstrom <len-l@xxxxxxxxx> wrote:
> Hi,
>
> René Dudfield wrote:
>>
>> ah that's cool :) Maybe we can reduce dependencies between some
>> modules with this.
>>
>>
>
> That's one possibility. Another idea is to generalize the program so it can
> be used to determine which Pygame modules are required in a Py2exe or
> Py2app executable.
>
ah, yes. That's a very good use. Perhaps then it should be in the
pygame module? So then people can call it from their setup scripts
without having to download the source release.
>> Seems to work fine here. It only checks module access, not object
>> attribute access.
>>
>>
>
> That is right, it only checks modules. Perhaps the profiler would show
> object access as well. trackmod was adapted from a lazy import project, so
> replaces the module type with something that responds to __getattribute__
> calls.
>
yeah, cool. Modules is still quite useful.