def instances_by_name(name_filter):
 return [o for o in gc.get_objects() if (name_filter == typename(o))]

def instances_by_name ( name_filter ) : return [ o for o in gc . get_objects ( ) if ( name_filter == typename ( o ) ) ]
return the list of objects that exactly match the given name_filter .