Thanks folks. Will write my own class Andrew
PS So for the record, this works and isn't as ugly/verbose as I was
expecting:
class TaggedWrapper():
def __init__(self, generator, logMixin, stream):
self.__generator = generator
self.__tag = '%...@%s' % (logMixin.describe()
Hi,
(I searched back and found some previous discussion on generator
attributes that seemed to be related to callable generators - this is
NOT that, as far as I can tell)
I want to associate some data with a generator. This is in a
decorator function, as it happens; the generator is being retur