def get_default_gid(uid):
 if isinstance(uid, int):
  return pwd.getpwuid(uid).pw_gid
 return pwd.getpwnam(uid).pw_gid

def get_default_gid ( uid ) : if isinstance ( uid , int ) : return pwd . getpwuid ( uid ) . pw_gid return pwd . getpwnam ( uid ) . pw_gid
return the default group of a specific user .