Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
If the values passed to the ClassFunction constructor are already a l…
Browse files Browse the repository at this point in the history
…ibgap

GapElement, keep with the ClassFunction_libgap implementation.

Otherwise everything goes haywire.
  • Loading branch information
embray committed Aug 14, 2019
1 parent 9205aa6 commit 0d0e1bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/groups/class_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ class function on the conjugacy classes, in that order.
except AttributeError:
pass

if isinstance(values, LibGapElement):
return ClassFunction_libgap(group, values)

return ClassFunction_gap(group, values)


Expand Down

0 comments on commit 0d0e1bb

Please sign in to comment.