Import redirects

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Feb 11 08:28:34 CET 2013


On 11/02/2013 06:50, Isaac To wrote:
> I have a package (say "foo") that I want to rename (say, to "bar"), and
> for compatibility reasons I want to be able to use the old package name
> to refer to the new package.

My apologies for the over engineering, but this is the best I could come 
up with.

import bar as foo

-- 
Cheers.

Mark Lawrence




More information about the Python-list mailing list