Actually, come to think of it I meant to say (with tongue in cheek)
"pygame.init_all_but(XXX)"
not
"from pygame import all but xxx"
but what you are suggesting is probably a good idea too (I guess, I'm just
starting with pygame).
On 8/26/11 10:05 AM, "Lenard Lindstrom"<len-l@xxxxxxxxx> wrote:
Hi John,
I have experimented with lazy importing of Pygame modules. Modules are
only loaded when directly accessed. It does decrease Pygame startup
time. I am considering adding it to Pygame 1.9.2. If there is interest I
can make it a priority. The main roadblock was making lazy imports
optional. I think I have solved that.
Lenard Lindstrom
On 26/08/11 09:46 AM, John Jameson wrote:
Yes, thanks, this did help on one little program so far. If I knew
which package(s) were really slow at loading then it'd be great if
there were a python command like "from pygame import all but xxx" ;-)