diff options
author | Stanislav Levin <slev@altlinux.org> | 2019-12-22 23:08:47 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-12-23 15:23:57 +0100 |
commit | c54af820fcbaa1dd7a4644670b58a40b4f587ff9 (patch) | |
tree | b3be93ceed60d9abe02c0ca7aa3e2135d4a995d6 /astroid/inference.py | |
parent | 1cce2085b06b2147d7da3fdfa53e578cd3278146 (diff) | |
download | astroid-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