Lines Matching full:keyfunc
487 # keyfunc failure
488 def keyfunc(obj):
489 if keyfunc.skip > 0:
490 keyfunc.skip -= 1
495 # keyfunc failure on outer object
496 keyfunc.skip = 0
497 self.assertRaises(ExpectedError, gulp, [None], keyfunc)
498 keyfunc.skip = 1
499 self.assertRaises(ExpectedError, gulp, [None, None], keyfunc)
1067 keyfunc = lambda x: x
1068 for i, j in groupby(xrange(n), key=keyfunc):
1069 keyfunc.__dict__.setdefault('x',[]).append(j)