list vs. dict
Greg Ewing
greg at cosc.canterbury.ac.nz
Fri Mar 1 00:08:35 EST 2002
David Eppstein wrote:
>
> It would be good if dict.has_key(x,y)
> worked without having to double the parentheses
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.
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list