[Pythonmac-SIG] python extension namespace clash in jaguar python?
Bob Ippolito
bob@redivi.com
Fri, 7 Feb 2003 17:32:34 -0500
Using the stock python from OS X 10.2, is there a way around the issue
where two python extensions with the same name (but in different
packages) will cause a clash? I know this has been resolved in later
builds of python, but it would be nice to be able to get around this
without distributing a custom build.
In my particular example, I was seeing how possible it is to port
pygame to the stock python using methods similar to what the pyobjc
team has done... pygame has a module called time, which clashes with
python's time. If I import pygame.time, and then import time, both of
them are actually pygame.time, and vice versa if I do it in reverse
order. I know I could rename pygame.time (and change inittime) to
something else, but that doesn't seem like a very good solution. Are
there any alternatives?
-bob