[Python-projects] __init__ method from a non direct base class <logilab.astng.Yes object at 0xb7f8392c> is called

skip at pobox.com skip at pobox.com
Tue Nov 21 15:21:29 CET 2006



    Barry> BTW pychecker has no problem finding the imports and reporting on
    Barry> problems with them.  Whatever the root cause is it is subtle.

Not really.  pychecker and pylint use different approaches.  pychecker
imports the modules and rummages around in the result, hence it sees my
mangled sys.path.  pylint doesn't import any of the candidate modules and
thus doesn't include any of import's side effects (good and bad).  It
traverses an AST representation of the code.

Skip


More information about the Python-Projects mailing list