[issue46068] Change use of warnings.warn to logging.warning in a few places
Raymond Hettinger
report at bugs.python.org
Mon Dec 13 20:39:54 EST 2021
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
> The downside of making this change is that it may break 3rd party unit tests.
I don’t see any upside. The modules in question have been stable for a good while. There’s no benefit to changing them.
Also, there is no strong agreement that the standard library should ever prefer logging.warn() over the warnings module which has mechanisms for filtering the warnings.
----------
nosy: +rhettinger
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46068>
_______________________________________
More information about the Python-bugs-list
mailing list