diff options
Diffstat (limited to 'Doc/library/shelve.rst')
| -rw-r--r-- | Doc/library/shelve.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst index 8aa2cf79de..262b4a482e 100644 --- a/Doc/library/shelve.rst +++ b/Doc/library/shelve.rst @@ -131,7 +131,7 @@ object):: # such key) del d[key] # delete data stored at key (raises KeyError # if no such key) - flag = d.has_key(key) # true if the key exists + flag = key in d # true if the key exists klist = d.keys() # a list of all existing keys (slow!) # as d was opened WITHOUT writeback=True, beware: |
