Nick Coghlan <ncogh...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue2001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to