logilab-astng #22100 fix infinite recursion with refactored astng [validation pending]
an infinite recursion on refactored astng occurs when pylint runs over refactored astng | |
priority | normal |
---|---|
type | bug |
done in | 0.21.0 |
load | 0.500 |
load left | 0.000 |
closed by | <not specified> |
Comments
-
2010/03/23 14:30, written by eanclin
- some astng modules (like builder and patchcomptransformer) go two times into the manager._cache, one time as "<module>", the other as "logilab.astng.<module>" .
- the patchcomptransformer generates situation where a Class seems to be its own grandparent
- but now the grandparent is the class with same name of the other "patchcomptransformer" module; hence we get a loop of length 4 and don't catch the grandpa situation
which is usually catched in the ancestors method
add commentThis appears only when we run pylint from "logilab" or when astng is a symbolic link /home/user/astng -> ~/src/logilab/astng.
What happens is: