This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients emptysquare, eric.snow, grahamd, ncoghlan
Date 2015-07-03.00:41:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435884077.54.0.517018915499.issue24554@psf.upfronthosting.co.za>
In-reply-to
Content
Per A. Jesse Jiryu Davis:

===========================
# mod.py
class C(object):
    pass

class Pool(object):
    def __del__(self):
        print('del')
        list()

C.pool = Pool()
===========================

===========================

int main()
{
    Py_Initialize();
    PyThreadState *tstate_enter = PyThreadState_Get();
    PyThreadState *tstate = Py_NewInterpreter();

    PyRun_SimpleString("import mod\n");
    if (PyErr_Occurred()) {
        PyErr_Print();
    }
    Py_EndInterpreter(tstate);
    PyThreadState_Swap(tstate_enter);
    printf("about to finalize\n");
    Py_Finalize();
    printf("done\n");

    return 0;
}
===========================

See:
http://emptysqua.re/blog/a-normal-accident-in-python-and-mod-wsgi/
https://github.com/GrahamDumpleton/mod_wsgi/issues/43
History
Date User Action Args
2015-07-03 00:41:17eric.snowsetrecipients: + eric.snow, ncoghlan, grahamd, emptysquare
2015-07-03 00:41:17eric.snowsetmessageid: <1435884077.54.0.517018915499.issue24554@psf.upfronthosting.co.za>
2015-07-03 00:41:17eric.snowlinkissue24554 messages
2015-07-03 00:41:16eric.snowcreate