[Grok-dev] Re: releasing 0.12.1

Wichert Akkerman wichert at wiggy.net
Thu Jun 5 09:28:07 EDT 2008

Previously Martijn Faassen wrote:
> Philipp von Weitershausen wrote:
> >On 4 Jun 2008, at 15:25 , Sebastian Ware wrote:
> >>Could someone show me what a module alias looks like? I have googled 
> >>but not found any example.
> >
> >
> >import the.new.module
> >sys.modules['old.module'] = the.new.module
> The dots imply that this works with namespace packages, does it? Or do 
> you have to create 'old' first and then 'module'?
> I wonder whether we cannot provide some infrastructure that will help 
> with this very common migration case.

You mean like zope.deprecate does?


Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

More information about the Grok-dev mailing list