Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/datastructures.rst @ 50073:60ee901b7352
Forward-port r67624 and r67627.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 07 Dec 2008 15:17:53 +0000 |
| parents | c87b84db244c |
| children | 4229a4b14f1d cc727239e51b |
line wrap: on
line diff
--- a/Doc/tutorial/datastructures.rst Sun Dec 07 15:15:46 2008 +0000 +++ b/Doc/tutorial/datastructures.rst Sun Dec 07 15:17:53 2008 +0000 @@ -376,7 +376,7 @@ >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} >>> print(basket) - {'orange', 'bananna', 'pear', 'apple'} + {'orange', 'banana', 'pear', 'apple'} >>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana'] >>> fruit = set(basket) # create a set without duplicates >>> fruit
