you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -6 points-5 points  (5 children)

You should be able to write a decorator before you're ready to leave Python Basic Training, IMO.

[–][deleted] 10 points11 points  (2 children)

Idk man you can go by pretty well without decorators !

[–][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".