diff options
author | Raymond Hettinger <python@rcn.com> | 2005-08-01 21:39:29 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2005-08-01 21:39:29 (GMT) |
commit | d794666048510deca0d4987a4c74d0fca85be411 (patch) | |
tree | 0d734e3a3e02c57255d24a8458d53fc02da9d677 /Python/pythonrun.c | |
parent | e295676c87d0a27ca4798a1d817ede88cc860586 (diff) | |
download | cpython-d794666048510deca0d4987a4c74d0fca85be411.zip cpython-d794666048510deca0d4987a4c74d0fca85be411.tar.gz cpython-d794666048510deca0d4987a4c74d0fca85be411.tar.bz2 |
* 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.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 0ac46f0..9e53564 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -420,6 +420,7 @@ Py_Finalize(void) PyCFunction_Fini(); PyTuple_Fini(); PyList_Fini(); + PySet_Fini(); PyString_Fini(); PyInt_Fini(); PyFloat_Fini(); |