Forward-port r67624 and r67627.

This commit is contained in:
Georg Brandl 2008-12-07 15:17:53 +00:00
parent c7d2b21cec
commit 2080ea5f4b
2 changed files with 1 additions and 8 deletions

View file

@ -376,7 +376,7 @@ Here is a brief demonstration::
>>> 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