Good catch.  Fixed.


On Wed, Sep 25, 2013 at 11:09 AM, John Jacobsen <notifications@github.com>wrote:

> In toolz/curried.py:
>
> > +"""
> > +
> > +import toolz
> > +from .functoolz import curry
> > +import inspect
> > +
> > +def nargs(f):
> > +    try:
> > +        return len(inspect.getargspec(f).args)
> > +    except TypeError:
> > +        return None
> > +
> > +def should_curry(f):
> > +    return callable(f) and nargs(f) and nargs(f) > 1
> > +
> > +d = {name: curry(f) if '__' not in name and should_curry(f) else f
>
> dict comprehensions aren't in 2.6, so this line would make the module
> unusable for one of my projects
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pytoolz/toolz/pull/15/files#r6580431>
> .
>