Entries published on December 19, 2023
Show Python deprecation warnings
This is part of a series of posts I’m doing as a sort of Python/Django Advent calendar, offering a small tip or piece of information each day from the first Sunday of Advent through Christmas Eve. See the first post for an introduction.
Let this be a warning
Python provides the ability to issue a warning as a step below raising an exception; warnings are issued by calling the warnings.warn()
function, which at minimum should be called with a message and a warning type.
One of the most common ways warnings are used is to provide notification that …