[Zope3-Users] Eclipse + PyDev + deferred imports

Shailesh Kumar shaileshk at gmail.com
Wed Aug 12 02:12:19 EDT 2009

I certainly agree :) My workaround plan is to use a global search on ._api
in my codebase and remove them when I move on from 3.3.1 to later version.

- Shailesh

On Wed, Aug 12, 2009 at 6:18 AM, Martin Aspeli
<optilude+lists at gmail.com<optilude%2Blists at gmail.com>
> wrote:

> Shailesh Kumar wrote:
> > I generally make it /from zope.component._api import getUtility/ to make
> > PyDev happy. It doesn't hurt the code and I don't have to see the
> > 'unresolved import message'.
> You shouldn't do this. You shouldn't import from a module starting with
> an underscore. It's the developers' way of telling you to treat it as
> internal. 'from zope.component import getUtility' is almost certain to
> work "forever". The _api module could disappear in a refactoring tomorrow.
> The only way to fix this is to make PyDev aware of zope.deferredimport.
> You could ask. :)
> Martin
> --
> Author of `Professional Plone Development`, a book for developers who
> want to work with Plone. See http://martinaspeli.net/plone-book
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20090812/161bacd8/attachment.html 

More information about the Zope3-users mailing list