#include "import.h"
#include "abstract.h"
+#include "bltinmodule.h"
#include "compile.h"
#include "eval.h"
--- /dev/null
+#ifndef Py_BLTINMODULE_H
+#define Py_BLTINMODULE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+PyAPI_DATA(PyTypeObject) PyFilter_Type;
+PyAPI_DATA(PyTypeObject) PyMap_Type;
+PyAPI_DATA(PyTypeObject) PyZip_Type;
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_BLTINMODULE_H */
Include/abstract.h \
Include/asdl.h \
Include/ast.h \
+ Include/bltinmodule.h \
Include/bitset.h \
Include/boolobject.h \
Include/bytes_methods.h \
if (PyType_Ready(&PyMemberDescr_Type) < 0)
Py_FatalError("Can't initialize member descriptor type");
+
+ if (PyType_Ready(&PyFilter_Type) < 0)
+ Py_FatalError("Can't initialize filter type");
+
+ if (PyType_Ready(&PyMap_Type) < 0)
+ Py_FatalError("Can't initialize map type");
+
+ if (PyType_Ready(&PyZip_Type) < 0)
+ Py_FatalError("Can't initialize zip type");
}
PyObject *it;
} filterobject;
-PyTypeObject PyFilter_Type;
-
static PyObject *
filter_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
PyObject *func;
} mapobject;
-PyTypeObject PyMap_Type;
-
static PyObject *
map_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
PyObject *result;
} zipobject;
-PyTypeObject PyZip_Type;
-
static PyObject *
zip_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{