diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-13 08:08:32 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-13 08:08:32 (GMT) |
commit | 2befd9a34c2de6a35aa9ea0f2e63f6cfaeed923b (patch) | |
tree | d8a9071bf08aaa05504465dc1cf77f852637c040 /Doc/library/shelve.rst | |
parent | b2f9e3bd5bcea5e0f10db61b6ad873844fdacded (diff) | |
download | cpython-2befd9a34c2de6a35aa9ea0f2e63f6cfaeed923b.zip cpython-2befd9a34c2de6a35aa9ea0f2e63f6cfaeed923b.tar.gz cpython-2befd9a34c2de6a35aa9ea0f2e63f6cfaeed923b.tar.bz2 |
Merged revisions 74762 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r74762 | ezio.melotti | 2009-09-13 07:48:45 +0300 (Sun, 13 Sep 2009) | 1 line
more list()s on dictviews
........
Diffstat (limited to 'Doc/library/shelve.rst')
-rw-r--r-- | Doc/library/shelve.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst index 35ed84c..10242fd 100644 --- a/Doc/library/shelve.rst +++ b/Doc/library/shelve.rst @@ -141,8 +141,8 @@ object):: # such key) del d[key] # delete data stored at key (raises KeyError # if no such key) - flag = key in d # true if the key exists - klist = d.keys() # a list of all existing keys (slow!) + flag = key in d # true if the key exists + klist = list(d.keys()) # a list of all existing keys (slow!) # as d was opened WITHOUT writeback=True, beware: d['xx'] = range(4) # this works as expected, but... |