From d0ae4fa70b807324a6146ae63b5ff7789ed6c268 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Tue, 19 May 2015 20:43:45 +0300 Subject: Specify that inference objects can be found in the AST tree, but only after inference. --- ChangeLog | 2 +- astroid/objects.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1727dc3..84d06b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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(...)) -- cgit v1.2.1