1 2 3 4 5 6 7 8
from cython.cimports import cqueue @cython.cclass class Queue: _c_queue = cython.declare(cython.pointer(cqueue.Queue)) def __cinit__(self): self._c_queue = cqueue.queue_new()