[issue5420] Queue deprecation warning patch

Jean-Paul Calderone report at bugs.python.org
Thu Mar 5 04:59:59 CET 2009


Jean-Paul Calderone <exarkun at divmod.com> added the comment:

Unit tests are a great thing as well.  Also, the deprecation warnings
you've added are the really annoying kind.  They refer to users to the
source of the deprecated methods themselves!  A vastly preferable use of
the warnings system is to refer users to the *callers* of the deprecated
methods.  Try passing different values for the stacklevel parameter of
the warnings.warn function until you get a warning that is more helpful.

----------
nosy: +exarkun

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5420>
_______________________________________


More information about the Python-bugs-list mailing list