This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jmarter
Recipients georg.brandl, jmarter
Date 2008-12-07.01:10:07
SpamBayes Score 0.0009141665
Marked as misclassified No
Message-id <1228612211.41.0.0899785129664.issue4570@psf.upfronthosting.co.za>
In-reply-to
Content
On http://docs.python.org/3.0/tutorial/datastructures.html#sets there is
the following section in the section on sets

>>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
>>> print(basket)
{'orange', 'bananna', 'pear', 'apple'}
>>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
>>> fruit = set(basket)               # create a set without duplicates
>>> fruit
{'orange', 'pear', 'apple', 'banana'}


The third command should be an assignment to basket rather than fruit.
History
Date User Action Args
2008-12-07 01:10:18jmartersetrecipients: + jmarter, georg.brandl
2008-12-07 01:10:12jmartersetmessageid: <1228612211.41.0.0899785129664.issue4570@psf.upfronthosting.co.za>
2008-12-07 01:10:09jmarterlinkissue4570 messages
2008-12-07 01:10:08jmartercreate