Fix a recursion issue about compiled objects
This commit is contained in:
1 parent
bd43608f98
commit
1547177128
1 file changed
+4
-1
@@ -447,8 +447,11 @@ def create_from_name(evaluator, compiled_object, name):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
access = compiled_object.access_handle.getattr(name, default=None)
|
access = compiled_object.access_handle.getattr(name, default=None)
|
||||||
|
parent_context = compiled_object
|
||||||
|
if parent_context.is_class():
|
||||||
|
parent_context = parent_context.parent_context
|
||||||
return create_cached_compiled_object(
|
return create_cached_compiled_object(
|
||||||
evaluator, access, parent_context=compiled_object, faked=faked
|
evaluator, access, parent_context=parent_context, faked=faked
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user