Re: trellis attrs

PJ Eby <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> Fri, 30 Sep 2011 15:32:00 -0400
Newsgroups gmane.comp.python.peak
Message-ID <CALeMXf6N=5Gh=hNs2_Ga_kWpdd766Ev71Y-CwNcgoYGDsh-=ew@mail.gmail.com>
--===============1322773226==
Content-Type: multipart/alternative; boundary=bcaec5014df9db698e04ae2dad95

--bcaec5014df9db698e04ae2dad95
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Sep 30, 2011 at 2:52 PM, nicky van foreest <[email protected]>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
created.

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.

--bcaec5014df9db698e04ae2dad95
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">On Fri, Sep 30, 2011 at 2:52 PM, nicky van foree=
st <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">vanforeest=
@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<div class=3D"im"><br>
&gt; b3 =3D Batch( prevs=3Dtrellis.Set([]) )<br>
&gt;<br>
&gt; I think that&#39;s the correct way to approach what you&#39;re trying =
to do. =A0I<br>
&gt; trust PJE will set things straight if I&#39;m pushing you in the wrong=
<br>
&gt; direction. =A0My experience with Trellis is quite limited.<br>
&gt;<br>
<br>
</div>Thanks very much for your answer. I&#39;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.=
 =A0If you do what I said, then you can also pass in a specific set as Lloy=
d suggests... =A0there&#39;s just no need to unless you want to use a speci=
fic set instead of having a empty default set created.</div>
<div><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex=
;border-left:1px #ccc solid;padding-left:1ex;"><div><div class=3D"h5"><span=
 class=3D"Apple-style-span" style=3D"color: rgb(80, 0, 80); font-family: ar=
ial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">I=
 simply misinterpreted the following documentation:</span><br>
<span class=3D"Apple-style-span" style=3D"color: rgb(80, 0, 80); font-famil=
y: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255)=
; ">&quot;Trellis Set objects offer nearly all the comforts of the Python</=
span><br>
<span class=3D"Apple-style-span" style=3D"color: rgb(80, 0, 80); font-famil=
y: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255)=
; ">standard library&#39;s sets.Set objects (minus .pop(), and support for<=
/span><br>
<span class=3D"Apple-style-span" style=3D"color: rgb(80, 0, 80); font-famil=
y: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255)=
; ">sets of mutable sets), but with observability:&quot;&quot;</span></div>
</div></blockquote><div><br></div><div>Yes, it just means you can&#39;t pop=
() items from a set, not that you can&#39;t, say, .remove() them.</div><div=
>=A0</div></div>

--bcaec5014df9db698e04ae2dad95--

--===============1322773226==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
PEAK mailing list
[email protected]
http://www.eby-sarna.com/mailman/listinfo/peak
--===============1322773226==--