[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] taming the circus of modules



Pete Shinners wrote:

> my plan is this, "import pygame" will import all the pygame modules. if 
> an optional module is not present, it will be assigned "None" (sort of 
> like what happens above in the chimp example.


ok, i've got this implemented now in the cvs pygame. i tried it with 
many pygame programs, and they all worked as expected, so this shouldn't 
break anything. the good news is you can now say "import pygame" and all 
the pygame modules will be imported into the pygame module. any missing 
modules will be present, but "None" values.

also, i didn't make any changes to pygame.local (like i was thinking 
about). i didn't really like the way it worked, and after getting a 
couple thumbs down in the email, it's definitely staying the way it was. 
so now most programs will only need "import pygame" and "from 
pygame.locals import *" if they desire :]




____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org