class-based class decorator

Chris Angelico rosuav at
Sat Jan 10 02:07:44 CET 2015

On Sat, Jan 10, 2015 at 8:26 AM, Albert-Jan Roskam
<fomcl at> wrote:
> I am trying to write a class decorator that checks whether deprecated parameters with non-default
> arguments are used. More complete code is here: In the code below,

Any particular reason to make this a class decorator, rather than a
function decorator on __init__? After all, __init__ is where you're
defining the deprecated parameters.


More information about the Python-list mailing list