Class Event
Synopsis
class Event(object)
Description
No description yet.
Inheritance
Ancestors: object
Decsendents: DocumentStartEvent, NodeEvent, DocumentEndEvent, CollectionEndEvent, StreamEndEvent, StreamStartEvent
Methods
__init__ | ||
__repr__ |
Source
Lines 4-15 in lib3/yaml/events.py.
class Event(object):
def __init__(self, start_mark=None, end_mark=None):
self.start_mark = start_mark
self.end_mark = end_mark
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)
class NodeEvent(Event):