Re: Doing set operation on non-hashable objects

2008-12-28 Thread 5lvqbwl02
On Dec 24, 12:21 pm, "Gabriel Genellina" wrote: > En Wed, 24 Dec 2008 17:16:59 -0200, <5lvqbw...@sneakemail.com> escribió: > > > I'm writing an application which is structured roughly as follows: > > > "db" is a dict, where the values are also dicts. > > A function searches through db and returns

Re: Doing set operation on non-hashable objects

2008-12-28 Thread 5lvqbwl02
> > ... "db" is a dict, where the values are also dicts. > > A function searches through db and returns a list of values, each of > > which is a dict as described above. > > I need to perform set operations on these lists (intersection and > > union) > > However the objects themselves are not hasha

Re: Doing set operation on non-hashable objects

2008-12-26 Thread 5lvqbwl02
On Dec 24, 12:52 pm, Carl Banks wrote: > On Dec 24, 1:16 pm, 5lvqbw...@sneakemail.com wrote: > > > > > > > Hi, > > > I'm writing an application which is structured roughly as follows: > > > "db" is a dict, where the values are also dicts. > > A function searches through db and returns a list of va

Re: Doing set operation on non-hashable objects

2008-12-24 Thread Carl Banks
On Dec 24, 1:16 pm, 5lvqbw...@sneakemail.com wrote: > Hi, > > I'm writing an application which is structured roughly as follows: > > "db" is a dict, where the values are also dicts. > A function searches through db and returns a list of values, each of > which is a dict as described above. > I need

Re: Doing set operation on non-hashable objects

2008-12-24 Thread Scott David Daniels
5lvqbw...@sneakemail.com wrote: ... "db" is a dict, where the values are also dicts. A function searches through db and returns a list of values, each of which is a dict as described above. I need to perform set operations on these lists (intersection and union) However the objects themselves are

Re: Doing set operation on non-hashable objects

2008-12-24 Thread Gabriel Genellina
En Wed, 24 Dec 2008 17:16:59 -0200, <5lvqbw...@sneakemail.com> escribió: I'm writing an application which is structured roughly as follows: "db" is a dict, where the values are also dicts. A function searches through db and returns a list of values, each of which is a dict as described above. I

Doing set operation on non-hashable objects

2008-12-24 Thread 5lvqbwl02
Hi, I'm writing an application which is structured roughly as follows: "db" is a dict, where the values are also dicts. A function searches through db and returns a list of values, each of which is a dict as described above. I need to perform set operations on these lists (intersection and union)