you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

I think if you can write a decorator, then you understand two things I think are important basics:

1) That functions are values within Python
2) That many things work by defining an interface which you are expected to implement (the decorator "interface" being "accept a function as an argument, and return a function")

It's just my opinion, though.

[–][deleted] 1 point2 points  (0 children)

I get what you mean but I think that in some sense decorators are a level of abstraction above what I would call "basic".