else:
code.annotate(pos, AnnotationItem('c_call', 'c function', size=len(self.name)))
-class BackquoteNode(ExprNode):
+class BackquoteNode(NewTempExprNode):
# `expr`
#
# arg ExprNode
-class ImportNode(ExprNode):
+class ImportNode(NewTempExprNode):
# Used as part of import statement implementation.
# Implements result =
# __import__(module_name, globals(), None, name_list)
code.put_gotref(self.py_result())
-class AsTupleNode(ExprNode):
+class AsTupleNode(NewTempExprNode):
# Convert argument to tuple. Used for normalising
# the * argument of a function call.
#
code.put_gotref(self.py_result())
-class UnboundMethodNode(ExprNode):
+class UnboundMethodNode(NewTempExprNode):
# Helper class used in the implementation of Python
# class definitions. Constructs an unbound method
# object from a class and a function.
'+': operator.pos,
}
-class UnopNode(ExprNode):
+class UnopNode(NewTempExprNode):
# operator string
# operand ExprNode
#
self.type = PyrexTypes.error_type
-class NotNode(ExprNode):
+class NotNode(NewTempExprNode):
# 'not' operator
#
# operand ExprNode
return "(~%s)" % self.operand.result()
-class AmpersandNode(ExprNode):
+class AmpersandNode(NewTempExprNode):
# The C address-of operator.
#
# operand ExprNode
code.put_incref(self.result(), self.ctype())
-class SizeofNode(ExprNode):
+class SizeofNode(NewTempExprNode):
# Abstract base class for sizeof(x) expression nodes.
type = PyrexTypes.c_size_t_type