Re: [myhdl-list] _Waiter.diff [was: intbv.saturate, intbv.wrap]
Brought to you by:
jandecaluwe
From: Christopher L. F. <cf...@uc...> - 2008-07-19 13:06:30
|
Yes, definitely a more general approach was needed. That looks like a good solution. On Jul 17, 2008, at 2:56 AM, Thomas Traber wrote: > I just started to look at Christophers script. > > At first: > > Instead of > >> if not isinstance(obj, list) and not isinstance(obj, numpy.ndarray): > > in his _Waiter.diff, I would prefer the more general approach: > >> if not hasattr(obj,"__iter__"): > > In the hope that it is not too general. > > > > > > > > > < > _Waiter > .diff > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list |