summaryrefslogtreecommitdiff
path: root/astroid/inference.py
diff options
context:
space:
mode:
authorStanislav Levin <slev@altlinux.org>2019-12-22 23:08:47 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2019-12-23 15:23:57 +0100
commitc54af820fcbaa1dd7a4644670b58a40b4f587ff9 (patch)
treeb3be93ceed60d9abe02c0ca7aa3e2135d4a995d6 /astroid/inference.py
parent1cce2085b06b2147d7da3fdfa53e578cd3278146 (diff)
downloadastroid-git-c54af820fcbaa1dd7a4644670b58a40b4f587ff9.tar.gz
Make use of cache while transform builtin containers
As of now, the transformation of builtin containers which members, in turn, are containers relies on `safe_infer` helper. `safe_infer` tries to infer the node to get its values. Doing this without a cache containing a previously inferred nodes lead to infinite recursion, for example, on resolving a class attribute. Note: this doesn't help to infer a class attribute by itself is such a case, but prevents crash. Closes: https://github.com/PyCQA/pylint/issues/3245 Signed-off-by: Stanislav Levin <slev@altlinux.org>
Diffstat (limited to 'astroid/inference.py')
0 files changed, 0 insertions, 0 deletions