I don't agree with this.  I am actually not sold on the separate division into functoolz, itertoolz and dicttoolz, particularly if it means we can't use one in tests for the other.  If you feel like we should have this restriction then I vote for abandoning the division altogether, à la Underscore.  Particularly since the use of `compose` shows a potential user of this library an example usage of the HOF.

On Oct 2, 2013, at 10:50 AM, Matthew Rocklin <notifications@github.com> wrote:

> In toolz/itertoolz/recipes.py:
> 
> > @@ -1,5 +1,7 @@
> > -from .core import groupby, frequencies
> > -from toolz.compatibility import map
> > +import itertools
> > +from .core import groupby, frequencies, second
> > +from ..functoolz import compose
> I prefer to avoid imports that cross the directory structure laterally.
> 
> Alternative solutions:
> 
> Use standard Python syntax to avoid compose
> Make a `toolz/toolz/recipes.py
> —
> Reply to this email directly or view it on GitHub.
>