Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20148
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
|---|---|
| From | 88888 Dihedral <dihedral88888@googlemail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Guide to: Learning Python Decorators |
| Date | Fri, 10 Feb 2012 00:11:13 -0800 (PST) |
| Organization | http://groups.google.com |
| Lines | 9 |
| Message-ID | <7265933.362.1328861473828.JavaMail.geo-discussion-forums@prew38> (permalink) |
| References | <476f8fff-9f08-4a54-8704-449cfaf6ad60@vv9g2000pbc.googlegroups.com> |
| NNTP-Posting-Host | 123.204.77.188 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1328861549 443 127.0.0.1 (10 Feb 2012 08:12:29 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Fri, 10 Feb 2012 08:12:29 +0000 (UTC) |
| In-Reply-To | <476f8fff-9f08-4a54-8704-449cfaf6ad60@vv9g2000pbc.googlegroups.com> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=123.204.77.188; posting-account=5JdMBQoAAABHnS4mjpqEzxnmWtgiiVNw |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:20148 |
Show key headers only | View raw
I prefer to decorate a function not a method. I prefer to decorate an object to own a new method from the existed ones inherited in all the class levels. I do not decorate a class if not necessary. I believe this is more pythonic to add functionalities to objects in classes by aggregated scripts that use similar modules over a period of time.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Guide to: Learning Python Decorators sajuptpm <sajuptpm@gmail.com> - 2012-02-09 09:56 -0800
Re: Guide to: Learning Python Decorators Terry Reedy <tjreedy@udel.edu> - 2012-02-09 15:28 -0500
Re: Guide to: Learning Python Decorators Ian <hobson42@gmail.com> - 2012-02-09 22:43 +0000
Re: Guide to: Learning Python Decorators Terry Reedy <tjreedy@udel.edu> - 2012-02-09 22:22 -0500
Re: Guide to: Learning Python Decorators sajuptpm <sajuptpm@gmail.com> - 2012-02-09 22:20 -0800
Re: Guide to: Learning Python Decorators anon hung <anonhung@gmail.com> - 2012-02-10 07:32 +0100
Re: Guide to: Learning Python Decorators 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-12 03:48 -0800
Re: Guide to: Learning Python Decorators 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-12 03:48 -0800
Re: Guide to: Learning Python Decorators 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-10 00:11 -0800
Re: Guide to: Learning Python Decorators Jack Diederich <jackdied@gmail.com> - 2012-02-12 04:04 -0500
csiph-web