Author ncoghlan
Recipients BreamoreBoy, belopolsky, eric.araujo, georg.brandl, giampaolo.rodola, ncoghlan, ping, r.liebscher, ron_adam, srid
Date 2010-11-14.07:40:10
SpamBayes Score 0.00367305
Marked as misclassified No
Message-id <1289720412.26.0.75698795903.issue2001@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-11-14 07:40:12ncoghlansetrecipients: + ncoghlan, ping, georg.brandl, belopolsky, giampaolo.rodola, ron_adam, eric.araujo, r.liebscher, srid, BreamoreBoy
2010-11-14 07:40:12ncoghlansetmessageid: <1289720412.26.0.75698795903.issue2001@psf.upfronthosting.co.za>
2010-11-14 07:40:10ncoghlanlinkissue2001 messages
2010-11-14 07:40:10ncoghlancreate