summaryrefslogtreecommitdiff
path: root/astroid/rebuilder.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-04-09 16:11:16 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-04-09 16:17:28 +0200
commit55076ca06018dd3a5d2748610c5aa81efbb96563 (patch)
tree67f7d301e8eacb7940b33b19dcf135bdeedb6bcc /astroid/rebuilder.py
parentc87bea17b9d389d06edf0b7e7e7e435b007c94d5 (diff)
downloadastroid-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