[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] taming the circus of modules
On Fri, 4 Jan 2002, Pete Shinners wrote:
>also as an optional idea, i may include the "pygame" variable inside the
>little "locals" module. then everything could be imported exactly the
>same by doing "from pygame.locals import *", and nothing extra needed.
>(to clarify, you would still access everything as "pygame.display", not
>just "display"). comments?
I'd consider having to write:
from pygame.locals import *
much harder than:
import pygame
import pygame.display
import pygame.xxx
as it describes more exactly what you import. New users would have a hard
time figuring out what the ".locals" part really does, and they would
wonder why can't it be just:
from pygame import *
instead? Especially if stuff imported using the first approach anyway has
the "pygame." prefix it becomes hard to understand.
Just my take on the thing.
--
He says gods like to see an atheist around. Gives them something to aim at.
-- Terry Pratchett, Small Gods
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org