X-Git-Url: https://git.distorted.org.uk/~mdw/mLib-python/blobdiff_plain/23bff39b96e98bc1969d275bc7c43e1d6dd28429..376ad06df03e59ebf0796b2f475417150e82252d:/sel-timer.pyx diff --git a/sel-timer.pyx b/sel-timer.pyx index 6bc4e28..24d3d24 100644 --- a/sel-timer.pyx +++ b/sel-timer.pyx @@ -38,7 +38,7 @@ cdef class SelTimer: cdef int _activep cdef readonly double time cdef _timer - def __new__(me, double when, timerproc = None, *hunoz, **hukairz): + def __cinit__(me, double when, timerproc = None, *hunoz, **hukairz): cdef timeval tv _floattotv(&tv, when) sel_addtimer(&_sel, &me.t, &tv, _timerfunc, me)