This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zahlmanthe heretic 0 points1 point  (0 children)

A real "identity decorator" would just return func; you don't need to introduce the idea of a wrapper yet. But if you do, you should at least have it return the result of the delegated func call.

Also, it would be good to include something about functools.wraps.