def consts(t):
    for elt in t:
        r = repr(elt)
        if r.startswith("<code object"):
            yield "<code object %s>" % elt.co_name
        else:
            yield r
Yield a doctest-safe sequence of object reprs.
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_code.py/consts