On Wed, Mar 11, 2009 at 3:22 PM, Shane Hathaway <[email protected]> wrote:
> Nit: In this case, two lines are better than one. > > import pkg_resources > pkg_resources.declare_namespace(__name__) > > There's no need to use the lesser known __import__ function when an > ordinary import statement will do. Indeed. -- Benji York Senior Software Engineer Zope Corporation _______________________________________________ Zope-Dev maillist - [email protected] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
