diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2019-04-09 16:11:16 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-04-09 16:17:28 +0200 |
commit | 55076ca06018dd3a5d2748610c5aa81efbb96563 (patch) | |
tree | 67f7d301e8eacb7940b33b19dcf135bdeedb6bcc /astroid/rebuilder.py | |
parent | c87bea17b9d389d06edf0b7e7e7e435b007c94d5 (diff) | |
download | astroid-git-55076ca06018dd3a5d2748610c5aa81efbb96563.tar.gz |
``igetattr`` raises ``InferenceError`` on re-inference of the same object
This prevents ``StopIteration`` from leaking when we encounter the same
object in the current context, which could result in various ``RuntimeErrors``
leaking in other parts of the inference.
Until we get a global context per inference, the solution is sort of a hack,
as with the suggested global context improvement, we could theoretically
reuse the same inference object.
Close #663
Diffstat (limited to 'astroid/rebuilder.py')
0 files changed, 0 insertions, 0 deletions