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 vstinner
Recipients Jim Fasarakis-Hilliard, amaury.forgeotdarc, corona10, eric.snow, isoschiz, koubaa, kylotan, lukasz.langa, miss-islington, pconnell, phsilva, python-dev, santoso.wijaya, shihai1991, tlesher, vstinner, ysj.ray
Date 2020-09-08.12:03:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> Python/_warnings.c

I'm not sure if it's a good idea to convert the _warnings module to multi-phase init, since it uses a state stored in the interpreter:

/* Given a module object, get its per-module state. */
static WarningsState *
    PyInterpreterState *interp = _PyInterpreterState_GET();
    if (interp == NULL) {
                        "warnings_get_state: could not identify "
                        "current interpreter");
        return NULL;
    return &interp->warnings;

For example, two _warnings instance would share the _warnings.filters list. Maybe it's ok, I don't know.
Date User Action Args
2020-09-08 12:03:11vstinnersetrecipients: + vstinner, amaury.forgeotdarc, kylotan, tlesher, phsilva, ysj.ray, santoso.wijaya, lukasz.langa, python-dev, eric.snow, pconnell, isoschiz, Jim Fasarakis-Hilliard, corona10, miss-islington, shihai1991, koubaa
2020-09-08 12:03:11vstinnersetmessageid: <>
2020-09-08 12:03:11vstinnerlinkissue1635741 messages
2020-09-08 12:03:11vstinnercreate