[myhdl-list] int(EnumItem)
Brought to you by:
jandecaluwe
|
From: Felton C. <chr...@gm...> - 2009-07-12 18:43:04
|
Does it make sense to add the following to the EnumItem class?
def __int__(self):
return int(self._val)
def __long__(self):
return long(self._val)
def __float__(self):
return float(self._val)
Thanks |