def get_event(self, name, default=_sentinel):
if name not in self.events:<EOL><INDENT>if self.create_events_on_access:<EOL><INDENT>self.add_event(name)<EOL><DEDENT>elif default is not _sentinel:<EOL><INDENT>return default<EOL><DEDENT><DEDENT>return self.events[name]<EOL>
Lookup an event by name.

:param str item: Event name
:return Event: Event instance under key