Re: [myhdl-list] int(EnumItem)
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2009-07-14 09:35:59
|
Felton Christopher wrote: > > 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) Probably, unless you also expect this to be easily convertible? -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com Analog design automation: http://www.mephisto-da.com World-class digital design: http://www.easics.com |