BaseSpec.__repr__()
This commit is contained in:
parent
4df51c3986
commit
b9d89fb346
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue