A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-April/052851.html below:

[Python-Dev] Caching objects in memory

[Python-Dev] Caching objects in memory [Python-Dev] Caching objects in memoryRaymond Hettinger python at rcn.com
Thu Apr 21 19:01:03 CEST 2005
[Facundo Batista]
> Is there a document that details which objects are cached in memory
> (to not create the same object multiple times, for performance)?

The caches get cleaned-up before Python exit's, so you can find them all
listed together in the code in Python/pythonrun.c:

        /* Sundry finalizers */
        PyMethod_Fini();
        PyFrame_Fini();
        PyCFunction_Fini();
        PyTuple_Fini();
        PyList_Fini();
        PyString_Fini();
        PyInt_Fini();
        PyFloat_Fini();

#ifdef Py_USING_UNICODE
        /* Cleanup Unicode implementation */
        _PyUnicode_Fini();
#endif


Raymond Hettinger
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4