summaryrefslogtreecommitdiffstats
path: root/Doc/library/shelve.rst
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2009-09-13 04:48:45 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2009-09-13 04:48:45 (GMT)
commit8f7649eae4194c3ed5407714300a1da1daf8bee0 (patch)
tree8c37d96adae2e33a8ed09d2dc885e93089a462b7 /Doc/library/shelve.rst
parent6aa7c8ce3ce0ef942956ee4cf3563082d53f0d75 (diff)
downloadcpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.zip
cpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.tar.gz
cpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.tar.bz2
more list()s on dictviews
Diffstat (limited to 'Doc/library/shelve.rst')
-rw-r--r--Doc/library/shelve.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/shelve.rst b/Doc/library/shelve.rst
index aa402c4..65303e9 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...