Ian Bicking: the old part of his blog

Re: Sad conflicting packages

# mymodule

import sys

# manipulate sys.path, to be sure you get the right dispatch

import dispatch as d

del sys.modules['dispatch']

# now refer to this dispatch in your code only as mymodule.d

import dispatch

# second dispatch

# But yes, this namespace handling sucks :)

Comment on Sad conflicting packages
by Andreas Kostyrka