[issue2001] Pydoc interactive browsing enhancement

Nick Coghlan report at bugs.python.org
Sun Nov 14 08:40:12 CET 2010

Nick Coghlan <ncoghlan at gmail.com> added the comment:

Just call warnings.warn with an appropriate message, a category of DeprecationWarning and a stacklevel of 2 (so the warning will refer to the function's caller rather than to the pydoc code).

It's basically the example from the warnings.warn docs.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list