Re: trellis attrs

nicky van foreest <[email protected]> Fri, 30 Sep 2011 21:28:17 +0200
Newsgroups gmane.comp.python.peak
Message-ID <CAK_GA2H_kJ0x5gUY9W9QBd1xurV7wB50JN4SCJsj8fGLDQGgUw@mail.gmail.com>
> I'll go ahead and just answer this bit, because it's the part I can
> understand without more detailed study. =A0Hopefully it'll get you what y=
ou
> need. =A0;-)
> Do this:
> class Batch(trellis.Component):
> =A0 =A0 =A0prevs =3D trellis.make(trellis.Set)
> =A0 =A0 =A0duration =3D trellis.attr(0)

Fantastic. This works neat.

I also tried the other idea of Lloyd, but that didn't work. Anyway, many th=
anks.

Nicky