deprecating parameters

Robert Collins robertc at robertcollins.net
Sun Jan 22 22:10:59 GMT 2006


On Sun, 2006-01-15 at 19:39 -0600, John Arbash Meinel wrote:

> What do you consider to be a 'nice' parameter deprecation decorator.

One that handles the use of the parameter as:
 * kwarg
 * positional arg
 * both at once (cant happen when its explicit but in a wrapper weird
shit can occur).

Also it should gives a clear message, and probably a forwarding address
like I've done manually. Also because we need to handle the old
parameter we'll still need to write the code to forward. So once I have
3 or 4 examples I'll factor it out and *maybe* make a decorator for it.

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060123/bce94203/attachment.pgp 


More information about the bazaar mailing list