Try this instead:
def __repr__(self): return "clist(%s)" % (','.join([str(item) for item in self]))
This method fails whenever any items in a clist happens to be a clist instance.
Try this instead:
def __repr__(self): [str(item) for item in self]))
return "clist(%s)" % (','.join(
This method fails whenever any items in a clist happens to be a clist instance.