diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-13 04:48:45 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-09-13 04:48:45 (GMT) |
commit | 8f7649eae4194c3ed5407714300a1da1daf8bee0 (patch) | |
tree | 8c37d96adae2e33a8ed09d2dc885e93089a462b7 /Doc/library/doctest.rst | |
parent | 6aa7c8ce3ce0ef942956ee4cf3563082d53f0d75 (diff) | |
download | cpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.zip cpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.tar.gz cpython-8f7649eae4194c3ed5407714300a1da1daf8bee0.tar.bz2 |
more list()s on dictviews
Diffstat (limited to 'Doc/library/doctest.rst')
-rw-r--r-- | Doc/library/doctest.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst index 2d0f48a..2aa3ae1 100644 --- a/Doc/library/doctest.rst +++ b/Doc/library/doctest.rst @@ -701,8 +701,7 @@ is vulnerable! One workaround is to do :: instead. Another is to do :: - >>> d = foo().items() - >>> d.sort() + >>> d = sorted(foo().items()) >>> d [('Harry', 'broomstick'), ('Hermione', 'hippogryph')] |