Giampaolo RodolĂ  wrote:
I've written this decorator to deprecate a function and (optionally)
provide a callable as replacement

I can see providing the replacement function so that you can say, for example, "you are calling a deprecated function -- <function xyz> is the replacement".

If your replacement function is drop-in compatible, though, why bother with the whole deprecate decorator? Just drop it in! :)

~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to