From: Stefan Behnel Date: Sat, 13 Dec 2008 14:21:41 +0000 (+0100) Subject: make sure we have the Py2.3 set code available when using set literals X-Git-Tag: 0.11-beta~138 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a5a68853bd12ce5c13e8082dd405f15d205bd0e;p=cython.git make sure we have the Py2.3 set code available when using set literals --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 252aa508..b84b3556 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -13,6 +13,7 @@ from Nodes import Node import PyrexTypes from PyrexTypes import py_object_type, c_long_type, typecast, error_type from Builtin import list_type, tuple_type, set_type, dict_type, unicode_type +import Builtin import Symtab import Options from Annotate import AnnotationItem @@ -3239,6 +3240,7 @@ class SetNode(NewTempExprNode): self.compile_time_value_error(e) def generate_evaluation_code(self, code): + code.globalstate.use_utility_code(Builtin.py23_set_utility_code) self.allocate_temp_result(code) code.putln( "%s = PySet_New(0); %s" % (