[docs] I found a bug in tutorial document

DongWoo Son neoevoke at gmail.com
Thu Apr 29 13:35:51 CEST 2010


in this document,

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

the last sentence should be like below one. basket was originally set,
so we don't need to change to set redundantly I think.


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20100429/9a66c044/attachment.html>

More information about the docs mailing list