Actually, I do think that _flatten() should go to utils.flatten() so that
other modules can use it.


On Tue, Jul 2, 2013 at 12:55 PM, Spencer Lyon <notifications@github.com>wrote:

> In xdress/typefilter.py:
>
> > +in order to forestall any potential issues with needed methods not
> > +being wrapped.
> > +
> > +"""
> > +from __future__ import print_function
> > +from .utils import isclassdesc, NotSpecified
> > +from .typesystem import TypeMatcher
> > +from .plugins import Plugin
> > +
> > +
> > +def _flatten(iterable):
> > +    "Recursive hack to flatten arbitrary lists/tuples of lists/tuples"
> > +    res = []
> > +    try:
> > +        for el in iterable:
> > +            if isinstance(el, (list, tuple)):
>
> Oops, I meant that it will be in xdress.typesystem (where TypeMatcher
> lives)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/xdress/xdress/pull/45/files#r4991042>
> .
>