Function __repr__

Synopsis

def __repr__(self)

Description

No description yet.

Source

Lines 8-14 in lib3/yaml/events.py.

def __repr__(self):
    attributes = [key for key in ['anchor', 'tag', 'implicit', 'value']
            if hasattr(self, key)]
    arguments = ', '.join(['%s=%r' % (key, getattr(self, key))
            for key in attributes])
    return '%s(%s)' % (self.__class__.__name__, arguments)





Add Discussion as Guest

Log in