[issue38415] @asynccontextmanager decorated functions are not callable like @contextmanager

2022-02-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b57dbe5d1be925b99f16fe5893e339f92fc05888 by Thomas Grainger in branch 'main': bpo-38415: Remove redundant AsyncContextDecorator.__call__ override from _AsyncGeneratorContextManager (GH-30233)

[issue38415] @asynccontextmanager decorated functions are not callable like @contextmanager

2021-12-22 Thread Thomas Grainger
Thomas Grainger added the comment: actually it was already done in 13 months! -- ___ Python tracker ___ ___ Python-bugs-list

[issue38415] @asynccontextmanager decorated functions are not callable like @contextmanager

2021-12-22 Thread Thomas Grainger
Change by Thomas Grainger : -- nosy: +graingert nosy_count: 3.0 -> 4.0 pull_requests: +28454 pull_request: https://github.com/python/cpython/pull/30233 ___ Python tracker ___

[issue38415] @asynccontextmanager decorated functions are not callable like @contextmanager

2021-09-23 Thread Łukasz Langa
Łukasz Langa added the comment: Look, not even 23 months to land this thing! Thanks, Jason! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.7, Python 3.8, Python 3.9 ___ Python

[issue38415] @asynccontextmanager decorated functions are not callable like @contextmanager

2021-09-23 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 86b833badd3d6864868404ead2f8c7994d24f85c by Jason Fried in branch 'main': bpo-38415: Allow using @asynccontextmanager-made ctx managers as decorators (GH-16667) https://github.com/python/cpython/commit/86b833badd3d6864868404ead2f8c7994d24f85c

[issue38415] @asynccontextmanager decorated functions are not callable like @contextmanager

2019-10-08 Thread Jason Fried
Change by Jason Fried : -- keywords: +patch pull_requests: +16250 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16667 ___ Python tracker ___

[issue38415] @asynccontextmanager decorated functions are not callable like @contextmanager

2019-10-08 Thread Jason Fried
New submission from Jason Fried : 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