Hi
I have been using classes for quite a while but there is still one concept yet that i havent ever quite understood and that is decorators. I have noticed Gribouillis uses them a lot so in some ways this question is directed at him. I would like to know in plain english what decorators do and how to use them, when to use them and why you use them. I found that all that i looked at in books and on the net didnt really tell me that much so any insight would be lovely.
lllllIllIlllI
178
Veteran Poster
Recommended Answers
Jump to PostThere is a small introduction at:
http://www.daniweb.com/forums/post764519-155.html
Jump to PostHello again and merry christmas ! In fact I don't use decorators so much. The decorators I use most often are the builtin decorators
@property
,@staticmethod
and@classmethod
. I discovered decorators in the attached slides of pycon 2005, which don't seem to be available anymore at python.org. Decorators …
All 5 Replies
sneekula
969
Nearly a Posting Maven
lllllIllIlllI
178
Veteran Poster
mn_kthompson
3
Junior Poster
Gribouillis
1,391
Programming Explorer
Team Colleague
sneekula
commented:
Thanks for the good info!
+6
lllllIllIlllI
178
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.