[Python-bugs-list] <dict>.has_key() allows more than one argument (PR#210)

ajung@sz-sb.de ajung@sz-sb.de
Wed, 23 Feb 2000 03:45:43 -0500 (EST)


Full_Name: Andreas Jung
Version: Python 1.5.2
OS: Solaris 2.7
Submission from: saarland.sz-sb.de (212.88.192.10)


According to the documentation the dictionary method has_key() allows
only one argument. However the current implementation allows more than
one argument. That makes no sense.

>>> d={1:2}
>>> d.has_key(1)
1
>>> d.has_key(1,2)
0

Maybe Python regards 1,2 as a tuple !?

Andreas Jung