diff --git a/qpms/cybspec.pyx b/qpms/cybspec.pyx index 866c440..45cf286 100644 --- a/qpms/cybspec.pyx +++ b/qpms/cybspec.pyx @@ -139,6 +139,9 @@ cdef class BaseSpec: # TODO raise correct errors (TypeError on bad type of key, IndexError on exceeding index) return self.__ilist[key] + def __repr__(self): + return 'BaseSpec([' + ','.join('%d' % i for i in self.__ilist) + '])' + property ilist: def __get__(self): return self.__ilist