]> granicus.if.org Git - python/commit
* Improve code for the empty frozenset singleton:
authorRaymond Hettinger <python@rcn.com>
Mon, 1 Aug 2005 21:39:29 +0000 (21:39 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 1 Aug 2005 21:39:29 +0000 (21:39 +0000)
commitd794666048510deca0d4987a4c74d0fca85be411
tree0d734e3a3e02c57255d24a8458d53fc02da9d677
parente295676c87d0a27ca4798a1d817ede88cc860586
* Improve code for the empty frozenset singleton:
  - Handle both frozenset() and frozenset([]).
  - Do not use singleton for frozenset subclasses.
  - Finalize the singleton.
  - Add test cases.
* Factor-out set_update_internal() from set_update().  Simplifies the
  code for several internal callers.
* Factor constant expressions out of loop in set_merge_internal().
* Minor comment touch-ups.
Include/pythonrun.h
Include/setobject.h
Lib/test/test_set.py
Objects/setobject.c
Python/pythonrun.c