Getting some element from sets.Set
Peter Otten
__peter__ at web.de
Fri May 4 04:48:29 EDT 2007
jm.suresh at no.spam.gmail.com wrote:
> On May 4, 11:34 am, Peter Otten <__pete... at web.de> wrote:
>> A set is probably not the appropriate container then. What is your use
>> case?
> Peter, I need to do a lot of union and intersection operations on
> these elements. So, set is a must for me in this case.
>
> In the particular case, I have to read an attribute from any one of
> the elements, which one doesn't matter because this attribute value is
> same across all elements in the set.
Convinced -- I lacked the imagination for this scenario :-)
Peter
More information about the Python-list
mailing list