Re: Pending: A Mixin class for testing

2006-11-27 Thread Peter Otten
Scott David Daniels wrote: > Here is a Mix-in class I just built for testing. > It is quite simple, but illustrates how Mixins > can be used. > > class Pending(object): > _pending = iter(()) > def __new__(class_, *args, **kwargs): > try: > retu

Pending: A Mixin class for testing

2006-11-26 Thread Scott David Daniels
Here is a Mix-in class I just built for testing. It is quite simple, but illustrates how Mixins can be used. class Pending(object): _pending = iter(()) def __new__(class_, *args, **kwargs): try: return class_._pending.next() except