

def __repr__(cls):
    props = []
    for (_, prop) in sorted(cls._properties.iteritems()):
        props.append(('%s=%r' % (prop._code_name, prop)))
    return ('%s<%s>' % (cls.__name__, ', '.join(props)))

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py MetaModel.__repr__/original