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

Brett Cannon report at bugs.python.org
Fri Aug 14 22:43:32 CEST 2015


Brett Cannon added the comment:

Nathaniel's solution is basically what I came up with in issue #23810 except I simply skipped subtracting from the stack level if it was found to be an internal import frame instead of swapping in and out a callable.

----------

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


More information about the Python-bugs-list mailing list