[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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to