Author fried
Recipients fried, yselivanov
Date 2019-10-08.20:45:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570567549.28.0.993731185011.issue38415@roundup.psfhosted.org>
In-reply-to
Content
The standard contextmanager decorator produces a wrapper that itself can be used as a decorator

```
@contextmanager
def some_context():
    ...
    yield

@some_context()
def some_function():
    # we are inside a with some_context() now. 
    ...


```

When I created a version of asynccontextmanager internally before it was available in the  stdLib I copied this behavior and I have people internally to facebook using this behavior,  Was there a reason this behavior was not replicated to asynccontextmanager?  

I have a diff an tests to add
History
Date User Action Args
2019-10-08 20:45:49friedsetrecipients: + fried, yselivanov
2019-10-08 20:45:49friedsetmessageid: <1570567549.28.0.993731185011.issue38415@roundup.psfhosted.org>
2019-10-08 20:45:49friedlinkissue38415 messages
2019-10-08 20:45:49friedcreate