[Python-checkins] r81410 - python/branches/py3k/Doc/tutorial/datastructures.rst

georg.brandl python-checkins at python.org
Fri May 21 22:45:13 CEST 2010


Author: georg.brandl
Date: Fri May 21 22:45:12 2010
New Revision: 81410

Log:
Remove redundant example.

Modified:
   python/branches/py3k/Doc/tutorial/datastructures.rst

Modified: python/branches/py3k/Doc/tutorial/datastructures.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/datastructures.rst	(original)
+++ python/branches/py3k/Doc/tutorial/datastructures.rst	Fri May 21 22:45:12 2010
@@ -377,10 +377,7 @@
 
 Here is a brief demonstration::
 
-   >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
-   >>> print(basket)
-   {'orange', 'banana', 'pear', 'apple'}
-   >>> fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
+   >>> basket = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana']
    >>> fruit = set(basket)               # create a set without duplicates
    >>> fruit
    {'orange', 'pear', 'apple', 'banana'}


More information about the Python-checkins mailing list