History for Lib/contextlib.py - python/cpython · GitHub

github.com

Tin mới

GH-151903: Use `for` instead of `next` in `contextlib.contextmanager` (GH-141275)

GH-151903: Use `for` instead of `next` in `contextlib.contextmanager` (GH-141275)

gh-125862: Keep ContextDecorator open across generator/coroutine execution (GH-136212)

gh-125862: Keep ContextDecorator open across generator/coroutine execution (GH-136212)

gh-144386: Add support for descriptors in ExitStack and AsyncExitStack (#144420)

gh-144386: Add support for descriptors in ExitStack and AsyncExitStack (#144420)

gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` (#111910)

gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` (#111910)

gh-110378: Close invalid generators in contextmanager and asynccontextmanager (GH-110499)

gh-110378: Close invalid generators in contextmanager and asynccontextmanager (GH-110499)

gh-102799: use sys.exception() instead of sys.exc_info() in contextlib (#103311)

gh-102799: use sys.exception() instead of sys.exc_info() in contextlib (#103311)

gh-105726: Add `__slots__` to `AbstractContextManager` and `AbstractAsyncContextManager` (#106771)

gh-105726: Add `__slots__` to `AbstractContextManager` and `AbstractAsyncContextManager` (#106771)

gh-103791: Make contextlib.suppress also act on exceptions within an ExceptionGroup (#103792)

gh-103791: Make contextlib.suppress also act on exceptions within an ExceptionGroup (#103792)

gh-95882: fix regression in the traceback of exceptions propagated from inside a contextlib context manager (#95883)

gh-95882: fix regression in the traceback of exceptions propagated from inside a contextlib context manager (#95883)

gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.throw (GH-96428)

gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.throw (GH-96428)

gh-92118: fix traceback of exceptions propagated from inside a contextlib.contextmanager (GH-92202)

gh-92118: fix traceback of exceptions propagated from inside a contextlib.contextmanager (GH-92202)

bpo-38415: Remove redundant AsyncContextDecorator.__call__ override from _AsyncGeneratorContextManager (GH-30233)

bpo-38415: Remove redundant AsyncContextDecorator.__call__ override from _AsyncGeneratorContextManager (GH-30233)

bpo-25625: add contextlib.chdir (GH-28271)

bpo-25625: add contextlib.chdir (GH-28271)

bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089)

bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089)

bpo-38415: Allow using @asynccontextmanager-made ctx managers as decorators (GH-16667)

bpo-38415: Allow using @asynccontextmanager-made ctx managers as decorators (GH-16667)

bpo-44566: resolve differences between asynccontextmanager and contextmanager (#27024)

bpo-44566: resolve differences between asynccontextmanager and contextmanager (#27024)

bpo-44471: Change error type for bad objects in ExitStack.enter_context() (GH-26820)

bpo-44471: Change error type for bad objects in ExitStack.enter_context() (GH-26820)

Fix typos in multiple files (GH-26689)

Fix typos in multiple files (GH-26689)

bpo-42395: Add aclosing to __all__ (GH-23356)

bpo-42395: Add aclosing to __all__ (GH-23356)

bpo-41543: contextlib.nullcontext can fill in for an async context manager (GH-21870)

bpo-41543: contextlib.nullcontext can fill in for an async context manager (GH-21870)

bpo-40816 Add AsyncContextDecorator class (GH-20516)

bpo-40816 Add AsyncContextDecorator class (GH-20516)

bpo-41229: Update docs for explicit aclose()-required cases and add contextlib.aclosing() method (GH-21545)

bpo-41229: Update docs for explicit aclose()-required cases and add contextlib.aclosing() method (GH-21545)

bpo-39481: Implementation for PEP 585 (#18239)

bpo-39481: Implementation for PEP 585 (#18239)

[3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)

[3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)

bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)

bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705)

bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637)

bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467)

bpo-33265: use an actual method instead of a method-like function in ExitStack (GH-6456)

bpo-30306: release arguments of contextmanager (GH-1500)

bpo-29302: Implement contextlib.AsyncExitStack. (#4790)

bpo-30241: implement contextlib.AbstractAsyncContextManager (#1412)

bpo-10049: Add a "no-op" (null) context manager to contextlib (GH-4464)

bpo-30266: support "= None" pattern in AbstractContextManager (#1448)

bpo-29679: Implement @contextlib.asynccontextmanager (#360)