[issue24305] The new import system makes it inconvenient to correctly issue a deprecation warning for a module

Larry Hastings report at bugs.python.org
Sun Sep 6 10:04:19 CEST 2015


Larry Hastings added the comment:

I don't think it'd be appropriate to backport to 3.4--that ship has sailed.  3.4 requires a stacklevel=8 and that's that.

If we backported it and it shipped in 3.4.4, "correct" code would have to use a stacklevel=8 for 3.4.0 through 3.4.3, and stacklevel=2 for 3.4.4 and above.  Ugh!

----------

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


More information about the Python-bugs-list mailing list