Bob Ippolito (@etrepum) on Haskell, Python, Erlang, JavaScript, etc.
«

Namespaces are one honking great idea -- let's do more of those!

»

According to The Zen of Python by Tim Peters:

Namespaces are one honking great idea -- let's do more of those!

Apparently some of us weren't listening. Both WebWare and PyObjC use several global names in the module namespace. PyObjC has objc, PyObjCTools, and one per framework it wraps. WebWare has a few of its own. Unfortunately, both have a package named WebKit!

Well, that sucks. If either WebWare or PyObjC change, then existing applications will break. If they don't, new applications that take advantage of both aren't possible. Unfortunately, it's entirely reasonable to want to use both WebKit packages in the same application. Oops!

Clearly, something ought to change, but I'm not sure what. PyObjC can and probably should grow a namespace for its wrapped frameworks, but should WebWare also be "polluting" the global namespace?

Should PyPI grow a global registry for top level names, like Apple's registry for creator codes?