summaryrefslogtreecommitdiffstats
path: root/Doc/library/pickle.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-11-09 23:56:33 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-11-09 23:56:33 (GMT)
commitdf1b69944796caa6854049caf624d32c408c27d5 (patch)
tree655332d48c8fd87bbc06e5e624238342c4ebdb94 /Doc/library/pickle.rst
parentbf764a1912b084e5fc9acd6cb160e66060bc368a (diff)
downloadcpython-df1b69944796caa6854049caf624d32c408c27d5.zip
cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.gz
cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.bz2
Issue #22823: Use set literals instead of creating a set from a list
Diffstat (limited to 'Doc/library/pickle.rst')
-rw-r--r--Doc/library/pickle.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/pickle.rst b/Doc/library/pickle.rst
index 47356f9..4ce4d34 100644
--- a/Doc/library/pickle.rst
+++ b/Doc/library/pickle.rst
@@ -859,7 +859,7 @@ For the simplest code, use the :func:`dump` and :func:`load` functions. ::
data = {
'a': [1, 2.0, 3, 4+6j],
'b': ("character string", b"byte string"),
- 'c': set([None, True, False])
+ 'c': {None, True, False}
}
with open('data.pickle', 'wb') as f: