Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #83480
| References | <879539503.1660445.1420838812525.JavaMail.yahoo@jws10784.mail.gq1.yahoo.com> |
|---|---|
| Date | 2015-01-10 12:07 +1100 |
| Subject | Re: class-based class decorator |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.17547.1420852068.18130.python-list@python.org> (permalink) |
On Sat, Jan 10, 2015 at 8:26 AM, Albert-Jan Roskam <fomcl@yahoo.com.dmarc.invalid> 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: http://pastebin.com/ZqnMis6M. 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. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: class-based class decorator Chris Angelico <rosuav@gmail.com> - 2015-01-10 12:07 +1100
csiph-web