[Grok-dev] Re: releasing 0.12.1
faassen at startifact.com
Thu Jun 5 11:26:59 EDT 2008
Wichert Akkerman wrote:
> 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?
zope.deprecation deals with moving around APIs though, not content,
right? It'd be a good package to try to extend to support
content-upgrades for classes that moves around, though. Or perhaps I'm
missing something about it?
More information about the Grok-dev