Skip to content

Commit

Permalink
Remove all instances of inline.
Browse files Browse the repository at this point in the history
Compiling another Cython module using `cytoolz` gave warnings about `inline`.
  • Loading branch information
eriknw committed Apr 9, 2014
1 parent 867c059 commit 3c10bba
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions cytoolz/functoolz.pxd
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cpdef inline object identity(object x)
cpdef object identity(object x)


cdef object c_thread_first(object val, object forms)
Expand Down Expand Up @@ -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)
4 changes: 2 additions & 2 deletions cytoolz/functoolz.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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)


Expand Down
6 changes: 3 additions & 3 deletions cytoolz/itertoolz.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions cytoolz/itertoolz.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ concatv = chain
concat = chain.from_iterable


cpdef inline object identity(object x):
cpdef object identity(object x):
return x


Expand Down Expand Up @@ -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]))
Expand Down Expand Up @@ -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]))
Expand Down Expand Up @@ -476,7 +476,7 @@ cpdef object get(object ind, object seq, object default=no_default):
return <object>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]))
Expand Down

0 comments on commit 3c10bba

Please sign in to comment.