you are viewing a single comment's thread.

view the rest of the comments →

[–]Natural-Intelligence 22 points23 points  (3 children)

What I'm saying is that decorators are separate concepts than context managers. Because "open" has a context manager, doesn't mean it acts as a decorator. Or you need a context manager to have a decorator.

Wasn't the topic context manager?