This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients georg.brandl, terry.reedy
Date 2008-10-30.17:48:23
SpamBayes Score 0.00038431387
Marked as misclassified No
Message-id <1225388905.15.0.305323271668.issue4243@psf.upfronthosting.co.za>
In-reply-to
Content
2.6 lib ref builtin types, mappings, has_key doc now says
"dict.has_key(key) is equivalent to key in d, but deprecated."
Posters on c.l.p found this confusing.  Which is deprecated?
I agree that this could be confusing to a beginner.

D'Arcy J.M. Cain suggests
"dict.has_key(key) is deprecated.  Use "key in dict" instead."
Or "Use the replacement ..."
Or "Use the new version ..."
History
Date User Action Args
2008-10-30 17:48:25terry.reedysetrecipients: + terry.reedy, georg.brandl
2008-10-30 17:48:25terry.reedysetmessageid: <1225388905.15.0.305323271668.issue4243@psf.upfronthosting.co.za>
2008-10-30 17:48:24terry.reedylinkissue4243 messages
2008-10-30 17:48:23terry.reedycreate