Commit 1a5a6885 authored by Stefan Behnel's avatar Stefan Behnel

make sure we have the Py2.3 set code available when using set literals

parent 893566e5
......@@ -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" % (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment