@@ -28,20 +28,30 @@ from libc.stdint cimport uint64_t
28
28
from libc.string cimport memset, strerror, memcpy
29
29
from libc cimport errno
30
30
31
- from cpython cimport PyObject
32
- from cpython cimport PyErr_CheckSignals, PyErr_Occurred
33
- from cpython cimport PyThread_get_thread_ident
34
- from cpython cimport Py_INCREF, Py_DECREF, Py_XDECREF, Py_XINCREF
35
- from cpython cimport (
31
+ from cpython.buffer cimport (
36
32
PyObject_GetBuffer, PyBuffer_Release, PyBUF_SIMPLE,
37
- Py_buffer, PyBytes_AsString, PyBytes_CheckExact,
33
+ Py_buffer, PyBUF_WRITABLE
34
+ )
35
+ from cpython.bytes cimport (
36
+ PyBytes_AsString, PyBytes_CheckExact,
38
37
PyBytes_AsStringAndSize,
39
- Py_SIZE, PyBytes_AS_STRING, PyBUF_WRITABLE
38
+ PyBytes_AS_STRING
40
39
)
40
+
41
+ from cpython.exc cimport PyErr_CheckSignals, PyErr_Occurred
42
+
43
+ from cpython.object cimport PyObject, Py_SIZE
44
+
41
45
from cpython.pycapsule cimport PyCapsule_New, PyCapsule_GetPointer
42
46
47
+ # (Winloop) We need some cleaver hacky techniques for
48
+ # preventing slow spawnning processes for MSVC
43
49
from cpython.pystate cimport PyGILState_Ensure, PyGILState_Release, PyGILState_STATE
44
50
51
+ from cpython.pythread cimport PyThread_get_thread_ident
52
+
53
+ from cpython.ref cimport Py_INCREF, Py_DECREF, Py_XDECREF, Py_XINCREF
54
+
45
55
from . import _noop
46
56
47
57
0 commit comments