On Jan 17, 10:45 am, Steven D'Aprano wrote:
> On Sat, 17 Jan 2009 00:24:21 -0800, Aaron Brady wrote:
> > Can you make it work for a 3-way lookup?
>
> What do you mean "3-way lookup"?
>
> I'm going to take a guess...
>
> A maps to B, B maps to C, and C maps to A.
>
> Is that what you mean?
So long
On Sat, 17 Jan 2009 00:24:21 -0800, Aaron Brady wrote:
> Can you make it work for a 3-way lookup?
What do you mean "3-way lookup"?
I'm going to take a guess...
A maps to B, B maps to C, and C maps to A.
Is that what you mean?
--
Steven
--
http://mail.python.org/mailman/listinfo/python-lis
On Jan 16, 5:03 am, Steven D'Aprano wrote:
> On Wed, 14 Jan 2009 16:30:36 -0800, Aaron Brady wrote:
> > Hi, this is a continuation of something that comes up now and again
> > about reverse lookups on dictionaries, as well as a follow-up to my
> > pursuit of a Relation class from earlier.
>
> [...
On Wed, 14 Jan 2009 16:30:36 -0800, Aaron Brady wrote:
> Hi, this is a continuation of something that comes up now and again
> about reverse lookups on dictionaries, as well as a follow-up to my
> pursuit of a Relation class from earlier.
[...]
> What's the best way to construct this class? Or,
On Jan 14, 7:54 pm, MRAB wrote:
> Aaron Brady wrote:
> > Hi, this is a continuation of something that comes up now and again
> > about reverse lookups on dictionaries, as well as a follow-up to my
> > pursuit of a Relation class from earlier.
>
> > For a reverse lookup, you just need two lookups.
On Jan 14, 7:04 pm, Chris Rebert wrote:
> On Wed, Jan 14, 2009 at 4:30 PM, Aaron Brady wrote:
> > Hi, this is a continuation of something that comes up now and again
> > about reverse lookups on dictionaries, as well as a follow-up to my
> > pursuit of a Relation class from earlier.
snip
> > Or,
Aaron Brady wrote:
Hi, this is a continuation of something that comes up now and again
about reverse lookups on dictionaries, as well as a follow-up to my
pursuit of a Relation class from earlier.
For a reverse lookup, you just need two lookups.
name= {}
phone= {}
name[ '555-963' ]= 'Joan'
pho
On Wed, Jan 14, 2009 at 4:30 PM, Aaron Brady wrote:
> Hi, this is a continuation of something that comes up now and again
> about reverse lookups on dictionaries, as well as a follow-up to my
> pursuit of a Relation class from earlier.
>
> For a reverse lookup, you just need two lookups.
> name= {
Hi, this is a continuation of something that comes up now and again
about reverse lookups on dictionaries, as well as a follow-up to my
pursuit of a Relation class from earlier.
For a reverse lookup, you just need two lookups.
name= {}
phone= {}
name[ '555-963' ]= 'Joan'
phone[ 'Joan' ]= '555-963'