Jump to content
xisto Community
Sign in to follow this  
rob86

What Are @decorators In Python?

Recommended Posts

I stumbled upon these strange beasts while browsing through Python's manuals and they don't make any sense to me. I tried reading a few different introductions to them and it seemed so strange? What are they good for, how do you use them? What are wrappers? This is mind boggling stuff! I've never see "@" in any example code. Could someone show me a simple example of how it could be useful?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.