list vs. dict
David Eppstein
eppstein at ics.uci.edu
Fri Mar 1 00:33:29 EST 2002
In article <3C7F0CD3.E70832BB at cosc.canterbury.ac.nz>,
Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:
> I don't have a recent enough Python at my fingertips
> to check, but I think
>
> if (x,y) in dict
>
> does the same thing nowadays.
You're right!
Every time I see something like this I like the language design more.
--
David Eppstein UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/
More information about the Python-list
mailing list