From 1a5a68853bd12ce5c13e8082dd405f15d205bd0e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 13 Dec 2008 15:21:41 +0100 Subject: [PATCH] make sure we have the Py2.3 set code available when using set literals --- Cython/Compiler/ExprNodes.py | 2 ++ 1 file changed, 2 insertions(+) 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" % ( -- 2.26.2