Mark built-in module as deprecated

Thomas Jollans thomas at jollans.com
Sun Jun 13 10:22:59 EDT 2010


On 06/13/2010 03:54 PM, moerchendiser2k3 wrote:
> Hi,
> 
> can anyone give me a hint how to mark a built-in module as deprecated?
> So mark via warnings... I create a module with Py_InitModule4.

How are modules ever marked as deprecated? I think all there is to it is
issuing a DeprecationWarning... something  like

PyErr_WarnEx(PyExc_DeprecationWarning, "foo deprecated. use fuzz", 1);

maybe.



More information about the Python-list mailing list