
March 9, 2020
2:54 p.m.
Rémi Lapeyre <remi.lapeyre@henki.fr> added the comment: warnings.WarningMessage was added in https://bugs.python.org/issue26568 at the same time than _showwarnmsg_impl() and _formatwarnmsg_impl(). The goal was to have public functions that took them instead of multiple arguments so it could be easily extended in the future. It looks like it never happened and as of today there is no way to use warnings.WarningMessage in user code. Maybe it is time to bikeshed the names and add them? ---------- nosy: +remi.lapeyre, vstinner _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue39913> _______________________________________