[Grok-dev] Re: releasing 0.12.1

Martijn Faassen faassen at startifact.com
Thu Jun 5 09:25:23 EDT 2008


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.

Regards,

Martijn



More information about the Grok-dev mailing list