summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-08-01 21:39:29 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-08-01 21:39:29 (GMT)
commitd794666048510deca0d4987a4c74d0fca85be411 (patch)
tree0d734e3a3e02c57255d24a8458d53fc02da9d677 /Include
parente295676c87d0a27ca4798a1d817ede88cc860586 (diff)
downloadcpython-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 'Include')
-rw-r--r--Include/pythonrun.h1
-rw-r--r--Include/setobject.h3
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index 4afab88..f461d13 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -115,6 +115,7 @@ PyAPI_FUNC(void) PyFrame_Fini(void);
PyAPI_FUNC(void) PyCFunction_Fini(void);
PyAPI_FUNC(void) PyTuple_Fini(void);
PyAPI_FUNC(void) PyList_Fini(void);
+PyAPI_FUNC(void) PySet_Fini(void);
PyAPI_FUNC(void) PyString_Fini(void);
PyAPI_FUNC(void) PyInt_Fini(void);
PyAPI_FUNC(void) PyFloat_Fini(void);
diff --git a/Include/setobject.h b/Include/setobject.h
index 8569ed1..aa4bb9f 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -42,8 +42,7 @@ struct _setobject {
/* table points to smalltable for small tables, else to
* additional malloc'ed memory. table is never NULL! This rule
- * saves repeated runtime null-tests in the workhorse getitem and
- * setitem calls.
+ * saves repeated runtime null-tests.
*/
setentry *table;
setentry *(*lookup)(PySetObject *so, PyObject *key, long hash);