Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/datastructures.rst @ 61802:e9a042a25197 3.1
Recorded merge of revisions 81410 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k
........
r81410 | georg.brandl | 2010-05-21 22:45:12 +0200 (Fr, 21 Mai 2010) | 1 line
Remove redundant example.
........
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 21 May 2010 20:47:30 +0000 |
| parents | e4f969012e68 |
| children | 28fef9e7c3bb |
line wrap: on
line diff
--- a/Doc/tutorial/datastructures.rst Fri May 21 20:39:17 2010 +0000 +++ b/Doc/tutorial/datastructures.rst Fri May 21 20:47:30 2010 +0000 @@ -377,10 +377,7 @@ Here is a brief demonstration:: - >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} - >>> print(basket) - {'orange', 'banana', 'pear', 'apple'} - >>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana'] + >>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana'] >>> fruit = set(basket) # create a set without duplicates >>> fruit {'orange', 'pear', 'apple', 'banana'}
