diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-19 20:43:45 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-05-19 20:43:45 +0300 |
commit | d0ae4fa70b807324a6146ae63b5ff7789ed6c268 (patch) | |
tree | 187618196e2dbd754372e6d115ab1969546f503e | |
parent | 91529224bd4ad1a80065a76a9e077697b9ebecd0 (diff) | |
download | astroid-d0ae4fa70b807324a6146ae63b5ff7789ed6c268.tar.gz |
Specify that inference objects can be found in the AST tree, but only after inference.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | astroid/objects.py | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -100,7 +100,7 @@ Change log for the astroid package (used to be astng) * Add a new type of node, called *inference objects*. Inference objects are similar with AST nodes, but they can be obtained only after inference, so they can't be found - inside the AST tree. Their purpose is to handle at astroid level + inside the original AST tree. Their purpose is to handle at astroid level some operations which can't be handled when using brain transforms. For instance, the first object added is FrozenSet, which can be manipulated at astroid's level (inferred, itered etc). Code such as this 'frozenset((1,2))' diff --git a/astroid/objects.py b/astroid/objects.py index de0d192..ba60bba 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -19,8 +19,8 @@ """ Inference objects are a way to represent composite AST nodes, which are used only as inference results, so they can't be found in the -code tree. For instance, inferring the following frozenset use, leads to an -inferred FrozenSet: +original AST tree. For instance, inferring the following frozenset use, +leads to an inferred FrozenSet: CallFunc(func=Name('frozenset'), args=Tuple(...)) |