Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

        def htmlInst(i):
    if hasattr(i, "__html__"):
        s = i.__html__()
    else:
        s = html.escape(saferepr(i))
    return '''
%s instance @ %s %s
''' % (i.__class__, hex(id(i)), s)


src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/twisted/web/widgets.py   hortonworks-sandbox(Download)
 
#backwards compatibility
from util import formatFailure, htmlrepr, htmlUnknown, htmlDict, htmlList,\
                 htmlInst, htmlString, htmlReprTypes
 

src/z/o/zope.app.twisted-3.5.0/src/twisted/web/widgets.py   zope.app.twisted(Download)
 
#backwards compatibility
from util import formatFailure, htmlrepr, htmlUnknown, htmlDict, htmlList,\
                 htmlInst, htmlString, htmlReprTypes