Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)
Recursively walk a sequence, stringifying each element.

        def strseq(object, convert, join=joinseq):
    """Recursively walk a sequence, stringifying each element."""
    if type(object) in (list, tuple):
        return join(map(lambda o, c=convert, j=join: strseq(o, c, j), object))
    else:
        return convert(object)
        


src/b/i/bipython-0.1.2/bipython/__init__.py   bipython(Download)
                        # We use the undocumented function inspection.strseq() for
                        # that. Fortunately, that madness is gone in Python 3.
                        markup.append((color, inspect.strseq(i, str)))
                    else:
                        markup.append((color, str(i)))

src/b/p/bphython-0.0.2/bpython/curtsiesfrontend/replpainter.py   bphython(Download)
 
        if not py3:
            s += color(inspect.strseq(arg, str))
        else:
            s += color(arg)

src/b/i/bipython-HEAD/bipython/__init__.py   bipython(Download)
                        # We use the undocumented function inspection.strseq() for
                        # that. Fortunately, that madness is gone in Python 3.
                        markup.append((color, inspect.strseq(i, str)))
                    else:
                        markup.append((color, str(i)))

src/b/p/bphython-0.0.2/bpython/urwid.py   bphython(Download)
                        # We use the undocumented function inspection.strseq() for
                        # that. Fortunately, that madness is gone in Python 3.
                        markup.append((color, inspect.strseq(i, str)))
                    else:
                        markup.append((color, str(i)))

src/b/p/bphython-0.0.2/bpython/cli.py   bphython(Download)
                # We use the undocumented function inspection.strseq() for
                # that. Fortunately, that madness is gone in Python 3.
                self.list_win.addstr(inspect.strseq(i, str), color)
            else:
                self.list_win.addstr(str(i), color)

src/b/p/bpython-0.12/bpython/urwid.py   bpython(Download)
                        # We use the undocumented function inspection.strseq() for
                        # that. Fortunately, that madness is gone in Python 3.
                        markup.append((color, inspect.strseq(i, str)))
                    else:
                        markup.append((color, str(i)))

src/b/p/bpython-0.12/bpython/cli.py   bpython(Download)
                # We use the undocumented function inspection.strseq() for
                # that. Fortunately, that madness is gone in Python 3.
                self.list_win.addstr(inspect.strseq(i, str), color)
            else:
                self.list_win.addstr(str(i), color)