def grp_from_name(name):
 global _gid_to_grp_cache, _name_to_grp_cache
 (entry, cached) = _cache_key_value(grp.getgrnam, name, _name_to_grp_cache)
 if (entry and (not cached)):
  _gid_to_grp_cache[entry.gr_gid] = entry
 return entry

def grp_from_name ( name ) : global _gid_to_grp_cache , _name_to_grp_cache ( entry , cached ) = _cache_key_value ( grp . getgrnam , name , _name_to_grp_cache ) if ( entry and ( not cached ) ) : _gid_to_grp_cache [ entry . gr_gid ] = entry return entry
return password database entry for name .