type_cache_invalidation_code = [
"""
#if PY_VERSION_HEX >= 0x02060000
+/* #define __Pyx_TypeModified(t) PyType_Modified(t) */ /* Py3.0beta1 */
static void __Pyx_TypeModified(PyTypeObject* type); /*proto*/
#else
#define __Pyx_TypeModified(t)
code.putln("#endif")
code.putln("#if PY_MAJOR_VERSION >= 3")
+ code.putln(" #include \"stringobject.h\"") # Py3 compat header for PyString_*()
code.putln(" #define PyBaseString_Type PyUnicode_Type")
code.putln(" #define PyInt_Type PyLong_Type")
code.putln(" #define PyInt_Check(op) PyLong_Check(op)")