diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-12-30 16:21:10 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-12-30 16:21:10 +0100 |
commit | 74d79ef6eb7d5354f63507128fea0ef524e69a01 (patch) | |
tree | 3051687f38e3f5461cc12327ad703eface89a88b /astroid/inference.py | |
parent | 60bf287a37358792277b5c1a0ba6821e579b97da (diff) | |
download | astroid-git-74d79ef6eb7d5354f63507128fea0ef524e69a01.tar.gz |
Revert path copying in InferenceContext()
While copying the path solves some inference issues, it also leads to
horrenduous performance hits on large libraries such as pandas.
We still want to have the path copying, but we need a better understanding
on why that is needed, as well as a change on how we operate with the inference
contexts.
Diffstat (limited to 'astroid/inference.py')
-rw-r--r-- | astroid/inference.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/astroid/inference.py b/astroid/inference.py index cb7b0041..3836c090 100644 --- a/astroid/inference.py +++ b/astroid/inference.py @@ -77,7 +77,6 @@ def _infer_sequence_helper(node, context=None): @decorators.raise_if_nothing_inferred -@decorators.path_wrapper def infer_sequence(self, context=None): if not any(isinstance(e, nodes.Starred) for e in self.elts): yield self @@ -817,7 +816,6 @@ nodes.AugAssign._infer = infer_augassign @decorators.raise_if_nothing_inferred -@decorators.path_wrapper def infer_arguments(self, context=None): name = context.lookupname if name is None: @@ -862,7 +860,6 @@ nodes.EmptyNode._infer = infer_empty_node @decorators.raise_if_nothing_inferred -@decorators.path_wrapper def infer_index(self, context=None): return self.value.infer(context) |