[Python-checkins] r81412 - in python/branches/release31-maint: Doc/tutorial/datastructures.rst

georg.brandl python-checkins at python.org
Fri May 21 22:47:30 CEST 2010


Author: georg.brandl
Date: Fri May 21 22:47:30 2010
New Revision: 81412

Log:
Recorded merge of revisions 81410 via svnmerge from 
svn+ssh://svn.python.org/python/branches/py3k

........
  r81410 | georg.brandl | 2010-05-21 22:45:12 +0200 (Fr, 21 Mai 2010) | 1 line
  
  Remove redundant example.
........


Modified:
   python/branches/release31-maint/   (props changed)
   python/branches/release31-maint/Doc/tutorial/datastructures.rst

Modified: python/branches/release31-maint/Doc/tutorial/datastructures.rst
==============================================================================
--- python/branches/release31-maint/Doc/tutorial/datastructures.rst	(original)
+++ python/branches/release31-maint/Doc/tutorial/datastructures.rst	Fri May 21 22:47:30 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