[PEAK] How do I extract a subset?

Peter Damoc pdamoc at gmail.com
Wed Apr 16 04:32:52 EDT 2008


Hello,

I have an app where I use a trellis.Set to hold some records, a
trellis.SortedSet to keep them in order but now I need to filter the records
based on some criteria.

records = trellis.Set()
filtered_records = trellis.???
sorted_records = trellis.SortedSet(data=filtered_records)

How can I do this?

Also, if I have an observer that watches over sorted_records, shouldn't it
be triggered if a change in the  underlying set is made?

Peter

-- 
There is NO FATE, we are the creators.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eby-sarna.com/pipermail/peak/attachments/20080416/e29cad28/attachment.html


More information about the PEAK mailing list