Commit c77a09a0 authored by Stefan Behnel's avatar Stefan Behnel

mark bytearray() and complex() as returning an instance of their type

parent 5c6fe144
...@@ -337,8 +337,9 @@ builtin_types_table = [ ...@@ -337,8 +337,9 @@ builtin_types_table = [
types_that_construct_their_instance = set([ 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', 'complex',
'dict', 'set', 'frozenset' 'bytes', 'unicode', 'bytearray',
'tuple', 'list', 'dict', 'set', 'frozenset'
# 'str', # only in Py3.x # 'str', # only in Py3.x
# 'file', # only in Py2.x # 'file', # only in Py2.x
]) ])
......
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