from ExprNodes import AtomicExprNode
class TempHandle(object):
+ # THIS IS DEPRECATED, USE LetRefNode instead
temp = None
needs_xdecref = False
def __init__(self, type):
return CleanupTempRefNode(pos, handle=self, type=self.type)
class TempRefNode(AtomicExprNode):
+ # THIS IS DEPRECATED, USE LetRefNode instead
# handle TempHandle
def analyse_types(self, env):
rhs.free_temps(code)
class CleanupTempRefNode(TempRefNode):
+ # THIS IS DEPRECATED, USE LetRefNode instead
# handle TempHandle
def generate_assignment_code(self, rhs, code):
self.handle.needs_cleanup = False
class TempsBlockNode(Node):
+ # THIS IS DEPRECATED, USE LetNode instead
+
"""
Creates a block which allocates temporary variables.
This is used by transforms to output constructs that need