From d1bfd2a4c0ae53550049d94a2f7474ff729c5b71 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 6 Dec 2009 23:31:20 +0100 Subject: [PATCH] set()/frozenset() also return their own instance --- Cython/Compiler/Builtin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index 37bd6228..c39258dc 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -124,9 +124,8 @@ types_that_construct_their_instance = ( # some builtin types do not always return an instance of # themselves - these do: 'type', 'bool', 'long', 'float', 'bytes', 'unicode', 'tuple', 'list', - 'dict', 'file', + 'dict', 'file', 'set', 'frozenset' # 'str', # only in Py3.x - # 'set', 'frozenset' # only in Py2.4+ ) -- 2.26.2