Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #83480 > unrolled thread

Re: class-based class decorator

Started byChris Angelico <rosuav@gmail.com>
First post2015-01-10 12:07 +1100
Last post2015-01-10 12:07 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: class-based class decorator Chris Angelico <rosuav@gmail.com> - 2015-01-10 12:07 +1100

#83480 — Re: class-based class decorator

FromChris Angelico <rosuav@gmail.com>
Date2015-01-10 12:07 +1100
SubjectRe: class-based class decorator
Message-ID<mailman.17547.1420852068.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web