BaseSpec.__repr__()
This commit is contained in:
parent
6ddcc4cfcf
commit
f0d0e48876
|
@ -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