<div class="gmail_quote">On Fri, Sep 30, 2011 at 2:52 PM, nicky van foreest <span dir="ltr"><<a href="mailto:vanforeest@gmail.com">vanforeest@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div class="im"><br>
> b3 = Batch( prevs=trellis.Set([]) )<br>
><br>
> I think that's the correct way to approach what you're trying to do. I<br>
> trust PJE will set things straight if I'm pushing you in the wrong<br>
> direction. My experience with Trellis is quite limited.<br>
><br>
<br>
</div>Thanks very much for your answer. I'll try this, and the idea of<br>
Philip in the other mail, and see whether these ideas work for my<br>
case.<br></blockquote><div><br></div><div>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 created.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5"><span class="Apple-style-span" style="color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">I simply misinterpreted the following documentation:</span><br>
<span class="Apple-style-span" style="color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">"Trellis Set objects offer nearly all the comforts of the Python</span><br>
<span class="Apple-style-span" style="color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">standard library's sets.Set objects (minus .pop(), and support for</span><br>
<span class="Apple-style-span" style="color: rgb(80, 0, 80); font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">sets of mutable sets), but with observability:""</span></div>
</div></blockquote><div><br></div><div>Yes, it just means you can't pop() items from a set, not that you can't, say, .remove() them.</div><div> </div></div>