projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e27f63a
)
minor cleanup, use set for efficient name lookup
author
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 27 Jul 2013 04:50:34 +0000
(06:50 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Sat, 27 Jul 2013 04:50:34 +0000
(06:50 +0200)
Cython/Compiler/Builtin.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Builtin.py
b/Cython/Compiler/Builtin.py
index
5f489ca
..
a66ef20
100644
(file)
--- a/
Cython/Compiler/Builtin.py
+++ b/
Cython/Compiler/Builtin.py
@@
-333,14
+333,15
@@
builtin_types_table = [
("frozenset", "PyFrozenSet_Type", []),
]
-types_that_construct_their_instance = (
+
+types_that_construct_their_instance = set([
# some builtin types do not always return an instance of
# themselves - these do:
'type', 'bool', 'long', 'float', 'bytes', 'unicode', 'tuple', 'list',
'dict', 'set', 'frozenset'
# 'str', # only in Py3.x
# 'file', # only in Py2.x
-
)
+
]
)
builtin_structs_table = [