[PEAK] trellis attrs

PJ Eby pje at telecommunity.com
Fri Sep 30 15:32:00 EDT 2011

On Fri, Sep 30, 2011 at 2:52 PM, nicky van foreest <vanforeest at gmail.com>wrote:

> Hi,
> > b3 = Batch( prevs=trellis.Set([]) )
> >
> > I think that's the correct way to approach what you're trying to do.  I
> > trust PJE will set things straight if I'm pushing you in the wrong
> > direction.  My experience with Trellis is quite limited.
> >
> Thanks very much for your answer. I'll try this, and the idea of
> Philip in the other mail, and see whether these ideas work for my
> case.

They will actually work together.  If you do what I said, then you can also
pass in a specific set as Lloyd suggests...  there's just no need to unless
you want to use a specific set instead of having a empty default set

I simply misinterpreted the following documentation:
> "Trellis Set objects offer nearly all the comforts of the Python
> standard library's sets.Set objects (minus .pop(), and support for
> sets of mutable sets), but with observability:""

Yes, it just means you can't pop() items from a set, not that you can't,
say, .remove() them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20110930/7e4984c2/attachment.html

More information about the PEAK mailing list