Message348426
I was caught by this again, indirectly via @contextmanager.
If I define a non-async context manager using @contextmanager, I expect the decorator support to work on async functions. I.e. the following should be equivalent:
```
async def foo():
with non_async_cm:
...
```
```
@non_async_cm
async def foo():
...
```
Not only does the 2nd case not work, but the decorator is (effectively) silently ignored :( |
|
Date |
User |
Action |
Args |
2019-07-25 06:22:48 | John Belmonte | set | recipients:
+ John Belmonte, asvetlov, yselivanov, xtreak |
2019-07-25 06:22:48 | John Belmonte | set | messageid: <1564035768.07.0.186833609684.issue37398@roundup.psfhosted.org> |
2019-07-25 06:22:48 | John Belmonte | link | issue37398 messages |
2019-07-25 06:22:47 | John Belmonte | create | |
|