("copy", "O", "O", "PyDict_Copy")]),
("slice", "PySlice_Type", []),
- ("file", "PyFile_Type", []),
+# ("file", "PyFile_Type", []), # not in Py3
("set", "PySet_Type", [("clear", "O", "i", "PySet_Clear"),
("discard", "OO", "i", "PySet_Discard"),
# some builtin types do not always return an instance of
# themselves - these do:
'type', 'bool', 'long', 'float', 'bytes', 'unicode', 'tuple', 'list',
- 'dict', 'file', 'set', 'frozenset'
+ 'dict', 'set', 'frozenset'
# 'str', # only in Py3.x
+ # 'file', # only in Py2.x
)
"frozenset": ["((PyObject*)&PyFrozenSet_Type)", py_object_type],
"slice": ["((PyObject*)&PySlice_Type)", py_object_type],
- "file": ["((PyObject*)&PyFile_Type)", py_object_type],
+# "file": ["((PyObject*)&PyFile_Type)", py_object_type], # not in Py3
"None": ["Py_None", py_object_type],
"False": ["Py_False", py_object_type],