Changes between Initial Version and Version 1 of Ticket #25706, comment 1


Ignore:
Timestamp:
06/29/18 16:07:21 (4 years ago)
Author:
tscrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25706, comment 1

    initial v1  
    22{{{#!sage
    33def _coerce_map_from_(self, G):
    4     if G.as_permutation_group() == self:                                         
    5         return the_morphism_construced_from_GAP                                 
     4    try:
     5        PG = G.as_permutation_group()
     6        if PG == self:                                         
     7            return the_morphism_construced_from_GAP
     8        if self.has_coerce_map_from(PG):
     9            return self.coerce_map_from(PG) * the_morphism_to_PG
     10    except (AttributeError, TypeError):
     11        pass
    612    return super(PermutationGroup, self)._coerce_map_from_(G)
    713}}}