0

I'm starting out in Python and have a base level understanding but still learning the architecture.

consider this method and the decorator (I think) above it:

enter image description here

I see documentation on a @classmethod here, but this appears to be something else.

My question: What is it, where is the documentation on it, and how does it work?

Oliver Williams
  • 5,966
  • 7
  • 36
  • 78
  • I hate that "How to make function decorators and chain them together?" is the title of our canonical explaining what a decorator is and how they work, but that's how it is. Any other title wouldn't be right for the question that was actually asked. – Karl Knechtel Aug 13 '22 at 09:49
  • That said: you have multiple gold badges and appear to have been using the site somewhat regularly for multiple years, so I shouldn't have to remind you to [research](https://meta.stackoverflow.com/questions/261592/) questions before asking. "the decorator (I think)" Okay; so did you try putting `python what is a decorator` into a search engine? "where is the documentation on it" Did you try putting `mocks_exception_handler decorator documentation` (possibly also including the name of whatever third-party library it is that you're using) into a search engine? – Karl Knechtel Aug 13 '22 at 09:52
  • For that matter, even if you have no idea about the name, something as simple as `python at sign before function` [gets useful results](https://duckduckgo.com/?q=python+at+sign+before+function). – Karl Knechtel Aug 13 '22 at 09:53

0 Answers0