Restructure eval_annotation so that it's more understandable

This commit is contained in:
Dave Halter committed 2018-12-09 20:48:18 +01:00
1 parent aa4846bff6
commit 3940fd8eff
3 files changed
+25 -27

No files matched your search

+2
View File
@@ -178,6 +178,8 @@ class Evaluator(object):
if isinstance(context, CompForContext):
return eval_node(context, element)
#import traceback, sys; traceback.print_stack(file=sys.stdout)
#print(element, id(context), context)
if_stmt = element
while if_stmt is not None:
if_stmt = if_stmt.parent