cpython/Misc/NEWS.d/next
Matthias Bussonnier b32d8b4f9b
bpo-42644: Validate values in logging.disable() (#23786)
* bpo-42644: Validate values in logging.disable()

Technically make the value of manager a property that checks and convert
values assigned to it properly. This has the side effect of making
`logging.disable` also accept strings representing the various level of
warnings.

We want to validate the type of the disable attribute at assignment
time, as it is later compared to other levels when emitting warnings and
would generate a `TypeError: '>=' not supported between ....` in a
different part of the code base, which can make it difficult to track
down.

When assigned an incorrect value; it will raise a TypeError when the
wrong type, or ValueError if an invalid str.

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2020-12-16 11:43:39 +02:00
..
Build bpo-31904: Enable libpython3.so shared library for VxWorks (GH-23741) 2020-12-14 23:14:43 +01:00
C API bpo-42591: Export missing Py_FrozenMain() symbol (GH-23730) 2020-12-10 18:39:17 +01:00
Core and Builtins bpo-42639: Move atexit state to PyInterpreterState (GH-23763) 2020-12-15 14:34:19 +01:00
Documentation Python 3.10.0a3 2020-12-07 19:34:10 +00:00
IDLE Python 3.10.0a3 2020-12-07 19:34:10 +00:00
Library bpo-42644: Validate values in logging.disable() (#23786) 2020-12-16 11:43:39 +02:00
Security Python 3.10.0a3 2020-12-07 19:34:10 +00:00
Tests bpo-31904: Skip some tests of changing owner in _test_all_chown_common() on VxWorks (GH-23716) 2020-12-15 22:21:53 +01:00
Tools-Demos Python 3.10.0a3 2020-12-07 19:34:10 +00:00
Windows Python 3.10.0a3 2020-12-07 19:34:10 +00:00
macOS Python 3.10.0a3 2020-12-07 19:34:10 +00:00