Commit 69561c17 authored by Stefan Behnel's avatar Stefan Behnel

minor cleanup, use set for efficient name lookup

parent e27f63ae
...@@ -333,14 +333,15 @@ builtin_types_table = [ ...@@ -333,14 +333,15 @@ builtin_types_table = [
("frozenset", "PyFrozenSet_Type", []), ("frozenset", "PyFrozenSet_Type", []),
] ]
types_that_construct_their_instance = (
types_that_construct_their_instance = set([
# some builtin types do not always return an instance of # some builtin types do not always return an instance of
# themselves - these do: # themselves - these do:
'type', 'bool', 'long', 'float', 'bytes', 'unicode', 'tuple', 'list', 'type', 'bool', 'long', 'float', 'bytes', 'unicode', 'tuple', 'list',
'dict', 'set', 'frozenset' 'dict', 'set', 'frozenset'
# 'str', # only in Py3.x # 'str', # only in Py3.x
# 'file', # only in Py2.x # 'file', # only in Py2.x
) ])
builtin_structs_table = [ builtin_structs_table = [
......
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