# HG changeset patch
# User David Joyner <wdjoyner@gmail.com>
# Date 1225504812 14400
# Node ID 89d9d290ee28d3e6f60c5c934545a24b0d7c82a6
# Parent 6c2e187f6c5ba5931c0542664b98443fcde44a18
patch for trivial group output  wdj
diff r 6c2e187f6c5b r 89d9d290ee28 sage/groups/perm_gps/permgroup.py
a

b


252  252  self._gap_string = gap_group if isinstance(gap_group, str) else str(gap_group) 
253  253  self._gens = self._gens_from_gap() 
254  254  return 
255   
256  255  gens = [PermutationGroupElement(x, check=False).list() for x in gens] 
257  256  self._deg = max([1]+[max(g) for g in gens]) 
258  257  gens = [PermutationGroupElement(x, self, check=False) for x in gens] 
 258  if gens == []: 
 259  gens = [()] 
259  260  self._gens = gens 
260  261  self._gap_string = 'Group(%s)'%gens 
261  262  
… 
… 

277  278  gens = [PermutationGroupElement(gens[n],self, check=False) 
278  279  for n in range(1, int(gens.Length())+1)] 
279  280  if gens == []: 
280   gens = [self.identity()] 
281   
 281  gens = [()] 
282  282  return gens 
283  283  
284  284  
… 
… 

1622  1622  sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]]) 
1623  1623  sage: G.composition_series() # random output 
1624  1624  [Permutation Group with generators [(1,2,3)(4,5), (3,4)], Permutation Group with generators [(1,5)(3,4), (1,5)(2,3), (1,5,4)], Permutation Group with generators [()]] 
 1625  sage: G = PermutationGroup([[(1,2,3),(4,5)], [(1,2)]]) 
 1626  sage: CS = G.composition_series() 
 1627  sage: CS[3] 
 1628  Permutation Group with generators [()] 
1625  1629  
1626  1630  """ 
1627  1631  current_randstate().set_seed_gap() 