[Python-checkins] r55384 - python/branches/release25-maint/Doc/lib/libsets.tex

georg.brandl python-checkins at python.org
Wed May 16 15:44:27 CEST 2007


Author: georg.brandl
Date: Wed May 16 15:44:25 2007
New Revision: 55384

Modified:
   python/branches/release25-maint/Doc/lib/libsets.tex
Log:
Bug #1719995: don't use deprecated method in sets example.
 (backport from rev. 55383)

Modified: python/branches/release25-maint/Doc/lib/libsets.tex
==============================================================================
--- python/branches/release25-maint/Doc/lib/libsets.tex	(original)
+++ python/branches/release25-maint/Doc/lib/libsets.tex	Wed May 16 15:44:25 2007
@@ -187,13 +187,13 @@
 >>> engineers.add('Marvin')                                  # add element
 >>> print engineers
 Set(['Jane', 'Marvin', 'Janice', 'John', 'Jack'])
->>> employees.issuperset(engineers)           # superset test
+>>> employees.issuperset(engineers)     # superset test
 False
->>> employees.union_update(engineers)         # update from another set
+>>> employees.update(engineers)         # update from another set
 >>> employees.issuperset(engineers)
 True
 >>> for group in [engineers, programmers, managers, employees]:
-...     group.discard('Susan')                # unconditionally remove element
+...     group.discard('Susan')          # unconditionally remove element
 ...     print group
 ...
 Set(['Jane', 'Marvin', 'Janice', 'John', 'Jack'])


More information about the Python-checkins mailing list