[Python-3000] PEP 3124 - Overloading, Generic Functions, Interfaces, etc.

Benji York benji at benjiyork.com
Sat May 12 03:07:24 CEST 2007


Eric V. Smith wrote:
> Benji York wrote:
>> zope.interface also allows "lazy" imports using string versions of 
>> module names in specific circumstances where circular dependencies are 
>> common.
> 
> Could you give an example of that?  I'm familiar with zope.interface, 
> but not with this feature.

I was mistaken, it's actually zope.dottedname that does this, which is 
then used by zope.app.container.constraints.  My confusion stems from 
the fact that zope.app.container.constraints is often used when defining 
interfaces.

My only reason for bringing it up was to reinforce the idea that it's a 
popular thing to reinvent, so either adding this to the stdlib or 
(preferably) creating a small, solid module as a stand-alone project.

zope.dottedname documentation: 
http://svn.zope.org/zope.dottedname/trunk/src/zope/dottedname/resolve.txt?rev=75116&view=markup
zope.app.container documentation:
http://svn.zope.org/zope.app.container/trunk/src/zope/app/container/constraints.txt?rev=75262&view=markup
-- 
Benji York
http://benjiyork.com


More information about the Python-3000 mailing list