Commit e6842141 authored by Stefan Behnel's avatar Stefan Behnel

list of builtin types that are known to always return an instance of themselves

parent 226ad9cf
......@@ -120,6 +120,14 @@ builtin_types_table = [
("frozenset", "PyFrozenSet_Type", []),
]
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',
# 'str', # only in Py3.x
# 'set', 'frozenset' # only in Py2.4+
)
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