]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport improvements to set.py so that the interface will remain
authorRaymond Hettinger <python@rcn.com>
Sun, 17 Aug 2003 22:08:58 +0000 (22:08 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 17 Aug 2003 22:08:58 +0000 (22:08 +0000)
commit27ea5783b33b55a2dbce2bb2dd74904de4032f4d
tree5b3df063ec7a941d44be2d6bd5e3076b325af850
parentfcc69f17185ff323672da8fb91f1f279c039c2ba
Backport improvements to set.py so that the interface will remain
consistent across versions.

* Relaxed the argument restrictions for non-operator methods.  They now
  allow any iterable instead of requiring a set.  This makes the module
  a little easier to use and paves the way for an efficient C
  implementation which can take better advantage of iterable arguments
  while screening out immutables.

* Added a PendingDeprecationWarning for Set.update() because it now
  duplicates Set.union_update()

* Adapted the tests and docs to include the above changes.

* Added more test coverage including testing identities and checking
  to make sure non-restartable generators work as arguments.
Doc/lib/libsets.tex
Lib/sets.py
Lib/test/test_sets.py
Misc/NEWS