On Tue, Nov 7, 2017 at 8:45 AM, Nathaniel Smith <n...@pobox.com> wrote: > Also, IIRC it's actually impossible to set the stacklevel= correctly when > you're deprecating a whole module and issue the warning at import time, > because you need to know how many stack frames the import system uses.
Doh, I didn't remember correctly. Actually Brett fixed this in 3.5: https://bugs.python.org/issue24305 -n -- Nathaniel J. Smith -- https://vorpus.org _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com