Skip to content

Commit 758d5e2

Browse files
Update recipes.pyx
1 parent bbca959 commit 758d5e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cytoolz/recipes.pyx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
from cpython.sequence cimport PySequence_Tuple
22
from cytoolz.itertoolz cimport frequencies, pluck
33

4-
from itertools import groupby
4+
import itertools
5+
6+
# cdef alias to eliminate global lookups
7+
cdef object groupby = itertools.groupby
8+
del itertools
59

610

711
__all__ = ['countby', 'partitionby']

0 commit comments

Comments
 (0)