Email Re: [Python-projects] Check imported modules attributes

from
Sylvain Thenault <syt at logilab dot fr>
subject
Re: [Python-projects] Check imported modules attributes
date
2005/06/21 13:37
On Tuesday 21 June à 11:28, amaury.forgeotdarc@ubitrade.com wrote:

> Bonjour Sylvain,

> > I'll try to
> > make a fix so that if the module is already imported, such as the re
> > module, we take advantage of it.

> This would also handle many cases of "magic imports" where the
> actual module is not where you think you imported it.
> For example, wxPython has an elaborated way to "select" the
> version of the library, and pythonWin does horrible things
> (see pythonWin/win32com/__init__.py)

hum, not sure I want to see that ;)
 
> A good solution would be to allow the user to manually import
> packages before running PyLint, or a way to specify directories
> from which modules are to be really imported.

I checked in a fix which does the trick for the re.finditer problem. For
the problem you mention, I guess that fixing the PYTHONPATH isn't
enough, right ? In this case, I think that providing a way to the user
to manually import packages and to take advantage of this for the astng
building would be the simplest thing to do. Sounds like another feature
request...

-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects