def appstr(app):
 return u'{0}:{1:#x}'.format((app.main or u'__main__'), id(app))

def appstr ( app ) : return u'{0}:{1:#x}' . format ( ( app . main or u'__main__' ) , id ( app ) )
string used in __repr__ etc .