pytoolz/cytoolz — pull request #42 by eriknw (2014-06-30 15:22:02+00:00)
Title: reduceby and countby can accept an index or list of indices as the key

Lesson learned: even inline functions need to return `object` so exceptions can be properly raised.