We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbca959 commit 758d5e2Copy full SHA for 758d5e2
cytoolz/recipes.pyx
@@ -1,7 +1,11 @@
1
from cpython.sequence cimport PySequence_Tuple
2
from cytoolz.itertoolz cimport frequencies, pluck
3
4
-from itertools import groupby
+import itertools
5
+
6
+# cdef alias to eliminate global lookups
7
+cdef object groupby = itertools.groupby
8
+del itertools
9
10
11
__all__ = ['countby', 'partitionby']
0 commit comments