[docs] A documentation glitch

Денис Горбачев Denis.Gorbachev at trueoffice.ru
Thu May 13 14:14:52 CEST 2010


Page in question:
http://docs.python.org/py3k/tutorial/datastructures.html#sets

>>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']

>>> fruit = set(basket)               # create a set without duplicates

Should be

>>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']

>>> fruit = set(*fruit*)               # create a set without duplicates

as the intention is to show how to create a set without duplicates from a list.

-- 
Денис Горбачев,
Начальник отдела Web-разработок ЗАО <<ТруОфис>>
http://www.trueoffice.ru/
+7 929 619-35-88
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20100513/08b97c3f/attachment-0001.html>


More information about the docs mailing list