Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/datastructures.rst @ 61800:e1f4fc63d2b3
Remove redundant example.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Fri, 21 May 2010 20:45:12 +0000 |
| parents | fd5c0ea2870b |
| children | 4bcd53617a65 |
line wrap: on
line diff
--- a/Doc/tutorial/datastructures.rst Fri May 21 20:28:13 2010 +0000 +++ b/Doc/tutorial/datastructures.rst Fri May 21 20:45:12 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'}
