diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2020-06-23 15:42:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-23 15:42:55 (GMT) |
commit | f9bd05e83e32bece49de5af0c9a232325c57648a (patch) | |
tree | f332a6f5041e64595b8569ca34ae6eb598c8e951 /Include | |
parent | 522691c46e2ae51faaad5bbbce7d959dd61770df (diff) | |
download | cpython-f9bd05e83e32bece49de5af0c9a232325c57648a.zip cpython-f9bd05e83e32bece49de5af0c9a232325c57648a.tar.gz cpython-f9bd05e83e32bece49de5af0c9a232325c57648a.tar.bz2 |
bpo-40521: Empty frozenset is no longer a singleton (GH-21085)
* Revert "bpo-40521: Make the empty frozenset per interpreter (GH-21068)"
This reverts commit 261cfedf7657a515e04428bba58eba2a9bb88208.
* bpo-40521: Empty frozensets are no longer singletons
* Complete the removal of the frozenset singleton
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_interp.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index 64e891f..c22bea7 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -244,8 +244,6 @@ struct _is { /* Using a cache is very effective since typically only a single slice is created and then deleted again. */ PySliceObject *slice_cache; - // The empty frozenset is a singleton. - PyObject *empty_frozenset; struct _Py_tuple_state tuple; struct _Py_list_state list; diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index 9a3063a..30ba484 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -62,7 +62,6 @@ extern void _PyFrame_Fini(PyThreadState *tstate); extern void _PyDict_Fini(PyThreadState *tstate); extern void _PyTuple_Fini(PyThreadState *tstate); extern void _PyList_Fini(PyThreadState *tstate); -extern void _PySet_Fini(PyThreadState *tstate); extern void _PyBytes_Fini(PyThreadState *tstate); extern void _PyFloat_Fini(PyThreadState *tstate); extern void _PySlice_Fini(PyThreadState *tstate); |