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

Larry Hastings report at bugs.python.org
Tue Aug 25 02:23:37 CEST 2015


Larry Hastings added the comment:

The C implementation is making me nervous.  My gut feeling is the Python implementation would be easier to get right.

I still don't quite understand: what is the user-perceived result of this change?  Module authors issuing a DeprecationWarning can now use stacklevel=2 instead of stacklevel=10?

----------

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


More information about the Python-bugs-list mailing list