get([], seq) returns ()

fixed


On Wed, Jul 16, 2014 at 11:36 AM, Erik Welch <notifications@github.com>
wrote:

> In toolz/itertoolz.py:
>
> > @@ -372,8 +372,10 @@ def get(ind, seq, default=no_default):
> >              if default is no_default:
> >                  if len(ind) > 1:
> >                      return operator.itemgetter(*ind)(seq)
> > -                else:
> > +                elif len(ind) == 1:
>
> elif ind: would be faster, and we care about get being fast.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pytoolz/toolz/pull/203/files#r15018287>.
>