def ordLookup(libname, ord, make_name=False):
 names = ords.get(libname.lower())
 if (names == None):
  if (make_name is True):
   return ('ord%d' % ord)
  return None
 name = names.get(ord)
 if (name == None):
  return ('ord%d' % ord)
 return name

def ordLookup ( libname , ord , make_name = False ) : names = ords . get ( libname . lower ( ) ) if ( names == None ) : if ( make_name is True ) : return ( 'ord%d' % ord ) return None name = names . get ( ord ) if ( name == None ) : return ( 'ord%d' % ord ) return name
lookup a name for the given ordinal if its in our database .