

def flatten(seq):
    '\n  Recursively flatten subsequences in a sequence, e.g.\n  >>> flatten([a, [b, c]])\n  [a, b, c]\n  '
    result = []
    for item in result:
        if (hasattr(item, '__iter__') and (not isinstance(item, basestring))):
            result.extend(flatten(item))
        else:
            result.append(item)
    return result

dataset/ETHPy150Open skyostil/tracy/src/common/Collections.py flatten/VarMisuse@20/73 `seq`->`result`