--- /dev/null
+# Present for backwards compatability
+from cpython.bool cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.buffer cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.bytes cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.cobject cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.complex cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.dict cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.exc cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.float cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.function cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.getargs cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.instance cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.int cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.iterator cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.list cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.long cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.mapping cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.mem cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.method cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.module cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.number cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.object cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.oldbuffer cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.pycapsule cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.ref cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.sequence cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.set cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.string cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.tuple cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.type cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.unicode cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.version cimport *
--- /dev/null
+# Present for backwards compatability
+from cpython.weakref cimport *
from libc.stdio cimport sprintf
from python cimport PyType_Check
-from cpython.type cimport PyType_Check as PyType_Check2
+from python_type cimport PyType_Check as PyType_Check2
+from cpython.type cimport PyType_Check as PyType_Check3
-def libc_imports():
+def libc_cimports():
"""
- >>> libc_imports()
+ >>> libc_cimports()
hello
"""
cdef char buf[10]
sprintf(buf, b'hello')
print (<object>buf).decode('ASCII')
-def python_imports():
+def cpython_cimports():
"""
- >>> python_imports()
+ >>> cpython_cimports()
+ True
+ False
True
False
True
print PyType_Check([])
print PyType_Check2(list)
print PyType_Check2([])
+ print PyType_Check3(list)
+ print PyType_Check3([])