Re: [myhdl-list] Signal getattr and setattr
Brought to you by:
jandecaluwe
From: Christopher L. F. <chr...@gm...> - 2009-12-27 22:29:25
|
Ignore the patch that was previously sent for now! I was careless and didn't run the regression tests. After running the "tests" it exposed some issues. It appears this method breaks the properties. Back to the drawing board. .chris Christopher L. Felton wrote: > Attached is a patch with some modification to __getattr__ and adds the > __setattr__ in _Signal.py. > > I like the idea that the Signal class is "transparent". Meaning that > the object that the Signal contains, its (the contained object) > attributes and properties can be accessed. > > The change checks the "slots" before accessing the "objects" (self._val) > attributes. > > The patch fixes the bug I previously posted, max recursion depth. > > I think I generated the bundle/patch correctly and tried to verify with > a separate repository clone. The workspace I created the bundle from > has additional changes (mainly error/warning statements and prints) that > are not ready to be pushed. The only changes should be the couple lines > in _Signal.py > > .chris > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |