def GetParam(tag, param, default=__SENTINEL):
if tag.HasParam(param):<EOL><INDENT>return tag.GetParam(param)<EOL><DEDENT>else:<EOL><INDENT>if default == __SENTINEL:<EOL><INDENT>raise KeyError<EOL><DEDENT>else:<EOL><INDENT>return default<EOL><DEDENT><DEDENT>
Convenience function for accessing tag parameters