BaseSpec.__repr__()

This commit is contained in:
Marek Nečada 2022-05-25 07:35:40 +03:00
parent 6ddcc4cfcf
commit f0d0e48876
1 changed files with 3 additions and 0 deletions

View File

@ -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