Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20148
| From | 88888 Dihedral <dihedral88888@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Guide to: Learning Python Decorators |
| Date | 2012-02-10 00:11 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <7265933.362.1328861473828.JavaMail.geo-discussion-forums@prew38> (permalink) |
| References | <476f8fff-9f08-4a54-8704-449cfaf6ad60@vv9g2000pbc.googlegroups.com> |
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