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
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to