def dylib_info(filename):
 is_dylib = DYLIB_RE.match(filename)
 if (not is_dylib):
  return None
 return is_dylib.groupdict()

def dylib_info ( filename ) : is_dylib = DYLIB_RE . match ( filename ) if ( not is_dylib ) : return None return is_dylib . groupdict ( )
a dylib name can take one of the following four forms: location/name .