Ask Your Question

Revision history [back]

Using ClonableIntArray

I want to use ClonableIntArray for use with permutation groups. To do so, I created a thin wrapper class:

class IntArray(ClonableIntArray):
  def check(self):
    return

class IntArrays(UniqueRepresentation, Parent):
  def __init__(self):
    Parent.__init__(self, category = Sets())

  def _element_constructor_(self, *args, **keywords):
    Element = IntArray

Later, I define a (standard Python) list of ints vertex_vector and attempt to turn it into an IntArray via

ia = IntArrays()(vertex_vector)

. Printing them both out, I get [1,0,0,0] for vertex_vector, and None for ia. What am I doing wrong?