diff options
| author | Collin Winter <collinw@gmail.com> | 2007-09-10 00:20:46 +0000 |
|---|---|---|
| committer | Collin Winter <collinw@gmail.com> | 2007-09-10 00:20:46 +0000 |
| commit | 19ab2bd1c7f2a2b93074a4bc03b738d6a6cac74d (patch) | |
| tree | 6d0135f15007e03834183d53da35c940322e64e1 /Doc/tutorial/datastructures.rst | |
| parent | 6fe2a6c21b4e0afae589da798e2392662fb140d7 (diff) | |
| download | cpython-git-19ab2bd1c7f2a2b93074a4bc03b738d6a6cac74d.tar.gz | |
Remove yet more references to has_key() methods.
Diffstat (limited to 'Doc/tutorial/datastructures.rst')
| -rw-r--r-- | Doc/tutorial/datastructures.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 39523dbb7a..55b3a3aa85 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -385,8 +385,7 @@ using a non-existent key. The :meth:`keys` method of a dictionary object returns a list of all the keys used in the dictionary, in arbitrary order (if you want it sorted, just apply the :meth:`sort` method to the list of keys). To check whether a single key is -in the dictionary, either use the dictionary's :meth:`has_key` method or the -:keyword:`in` keyword. +in the dictionary, use the :keyword:`in` keyword. Here is a small example using a dictionary:: |
