Mercurial > cpython-lru_cache-weakref
diff Include/stringobject.h @ 16751:ca1be7d00413 legacy-trunk
_Py_ReleaseInternedStrings(): Private API function to decref and
release the interned string dictionary. This is useful for memory
use debugging because it eliminates a huge source of noise from the
reports. Only defined when INTERN_STRINGS is defined.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Fri, 23 Feb 2001 16:40:48 +0000 |
| parents | 58b832b8745e |
| children | 9ea87c0a7c04 |
line wrap: on
line diff
--- a/Include/stringobject.h Fri Feb 23 16:32:32 2001 +0000 +++ b/Include/stringobject.h Fri Feb 23 16:40:48 2001 +0000 @@ -65,9 +65,11 @@ #ifdef INTERN_STRINGS extern DL_IMPORT(void) PyString_InternInPlace(PyObject **); extern DL_IMPORT(PyObject *) PyString_InternFromString(const char *); +extern DL_IMPORT(void) _Py_ReleaseInternedStrings(void); #else #define PyString_InternInPlace(p) #define PyString_InternFromString(cp) PyString_FromString(cp) +#define _Py_ReleaseInternedStrings() #endif /* Macro, trading safety for speed */
