diff --git a/cytoolz/functoolz.pxd b/cytoolz/functoolz.pxd index 33d0b0c..070120d 100644 --- a/cytoolz/functoolz.pxd +++ b/cytoolz/functoolz.pxd @@ -1,4 +1,4 @@ -cpdef inline object identity(object x) +cpdef object identity(object x) cdef object c_thread_first(object val, object forms) @@ -43,7 +43,7 @@ cdef class _juxt_inner: cdef tuple funcs -cdef inline object c_juxt(object funcs) +cdef object c_juxt(object funcs) cpdef object do(object func, object x) diff --git a/cytoolz/functoolz.pyx b/cytoolz/functoolz.pyx index dc155a7..60baf47 100644 --- a/cytoolz/functoolz.pyx +++ b/cytoolz/functoolz.pyx @@ -15,7 +15,7 @@ __all__ = ['identity', 'thread_first', 'thread_last', 'memoize', 'compose', 'pipe', 'complement', 'juxt', 'do', 'curry', 'memoize'] -cpdef inline object identity(object x): +cpdef object identity(object x): return x @@ -413,7 +413,7 @@ cdef class _juxt_inner: return (PyObject_CallObject(func, args) for func in self.funcs) -cdef inline object c_juxt(object funcs): +cdef object c_juxt(object funcs): return _juxt_inner(funcs) diff --git a/cytoolz/itertoolz.pxd b/cytoolz/itertoolz.pxd index 42a31bb..b7db3cb 100644 --- a/cytoolz/itertoolz.pxd +++ b/cytoolz/itertoolz.pxd @@ -40,13 +40,13 @@ cpdef bint isiterable(object x) cpdef bint isdistinct(object seq) -cpdef inline object take(int n, object seq) +cpdef object take(int n, object seq) cpdef object drop(int n, object seq) -cpdef inline object take_nth(int n, object seq) +cpdef object take_nth(int n, object seq) cpdef object first(object seq) @@ -67,7 +67,7 @@ cpdef object rest(object seq) cpdef object get(object ind, object seq, object default=*) -cpdef inline object cons(object el, object seq) +cpdef object cons(object el, object seq) cdef class interpose: diff --git a/cytoolz/itertoolz.pyx b/cytoolz/itertoolz.pyx index 99700b5..3af2dea 100644 --- a/cytoolz/itertoolz.pyx +++ b/cytoolz/itertoolz.pyx @@ -29,7 +29,7 @@ concatv = chain concat = chain.from_iterable -cpdef inline object identity(object x): +cpdef object identity(object x): return x @@ -299,7 +299,7 @@ cpdef bint isdistinct(object seq): return len(seq) == len(set(seq)) -cpdef inline object take(int n, object seq): +cpdef object take(int n, object seq): """ The first n elements of a sequence >>> list(take(2, [10, 20, 30, 40, 50])) @@ -329,7 +329,7 @@ cpdef object drop(int n, object seq): return iter_seq -cpdef inline object take_nth(int n, object seq): +cpdef object take_nth(int n, object seq): """ Every nth item in seq >>> list(take_nth(2, [10, 20, 30, 40, 50])) @@ -476,7 +476,7 @@ cpdef object get(object ind, object seq, object default=no_default): return obj -cpdef inline object cons(object el, object seq): +cpdef object cons(object el, object seq): """ Add el to beginning of (possibly infinite) sequence seq. >>> list(cons(1, [2, 3]))