summaryrefslogtreecommitdiffstats
path: root/Lib/contextlib.py
Commit message (Expand)AuthorAgeFilesLines
* gh-103791: handle `BaseExceptionGroup` in `contextlib.suppress()` (#111910)Zac Hatfield-Dodds2023-11-101-1/+1
* gh-110378: Close invalid generators in contextmanager and asynccontextmanager...Serhiy Storchaka2023-10-101-4/+16
* gh-102799: use sys.exception() instead of sys.exc_info() in contextlib (#103311)Irit Katriel2023-07-201-22/+32
* gh-105726: Add `__slots__` to `AbstractContextManager` and `AbstractAsyncCont...Grigoriev Semyon2023-07-161-0/+4
* gh-103791: Make contextlib.suppress also act on exceptions within an Exceptio...Łukasz Langa2023-04-241-1/+10
* gh-95882: fix regression in the traceback of exceptions propagated from insid...Thomas Grainger2023-01-031-1/+4
* gh-96348: Deprecate the 3-arg signature of coroutine.throw and generator.thro...Ofey Chan2022-09-301-2/+2
* gh-92118: fix traceback of exceptions propagated from inside a contextlib.con...Irit Katriel2022-05-041-0/+3
* bpo-38415: Remove redundant AsyncContextDecorator.__call__ override from _Asy...Thomas Grainger2022-02-261-8/+0
* bpo-25625: add contextlib.chdir (GH-28271)Filipe Laíns2021-10-191-1/+18
* bpo-44594: fix (Async)ExitStack handling of __context__ (gh-27089)John Belmonte2021-10-041-4/+4
* bpo-38415: Allow using @asynccontextmanager-made ctx managers as decorators (...Jason Fried2021-09-231-0/+8
* bpo-44566: resolve differences between asynccontextmanager and contextmanager...Thomas Grainger2021-07-201-45/+59
* bpo-44471: Change error type for bad objects in ExitStack.enter_context() (GH...Serhiy Storchaka2021-06-291-6/+17
* Fix typos in multiple files (GH-26689)Binbin2021-06-131-1/+1
* bpo-42395: Add aclosing to __all__ (GH-23356)Tom Gringauz2020-11-171-1/+1
* bpo-41543: contextlib.nullcontext can fill in for an async context manager (G...Tom Gringauz2020-11-091-1/+7
* bpo-40816 Add AsyncContextDecorator class (GH-20516)Kazantcev Andrey2020-11-051-1/+24
* bpo-41229: Update docs for explicit aclose()-required cases and add contextli...Joongi Kim2020-11-021-0/+26
* bpo-39481: Implementation for PEP 585 (#18239)Guido van Rossum2020-04-071-1/+5
* [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620)Serhiy Storchaka2019-06-051-34/+2
* bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)Serhiy Storchaka2019-06-011-4/+2
* bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705)Serhiy Storchaka2019-05-061-0/+2
* bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637)Serhiy Storchaka2019-04-011-4/+36
* bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (G...Yury Selivanov2018-06-081-1/+1
* bpo-33265: use an actual method instead of a method-like function in ExitStac...jdemeyer2018-04-131-8/+3
* bpo-30306: release arguments of contextmanager (GH-1500)Martin Teichmann2018-01-281-0/+3
* bpo-29302: Implement contextlib.AsyncExitStack. (#4790)Ilya Kulakov2018-01-251-46/+205
* bpo-30241: implement contextlib.AbstractAsyncContextManager (#1412)Jelle Zijlstra2017-12-141-2/+25
* bpo-10049: Add a "no-op" (null) context manager to contextlib (GH-4464)Jesse-Bakker2017-11-231-1/+22
* bpo-30266: support "= None" pattern in AbstractContextManager (#1448)Jelle Zijlstra2017-06-091-3/+2
* bpo-29679: Implement @contextlib.asynccontextmanager (#360)Jelle Zijlstra2017-05-011-6/+93
* bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH...svelankar2017-04-111-6/+6
* Clarify exception handler scope in contextlibamosonn2017-03-011-1/+2
* bpo-27122: Fix comment to point to correct issue number (#47)Nathaniel J. Smith2017-02-121-1/+1
* Issue #27123: When an exception is raised within the context beingGregory P. Smith2016-06-141-0/+3
|\
| * Issue #27123: When an exception is raised within the context beingGregory P. Smith2016-06-141-0/+3
* | Normalize whitespaceBrett Cannon2016-04-081-1/+1
* | Issue #25609: Introduce contextlib.AbstractContextManager andBrett Cannon2016-04-081-11/+31
|/
* Issue #24336: The contextmanager decorator now works with functions withSerhiy Storchaka2015-06-281-3/+3
|\
| * Issue #24336: The contextmanager decorator now works with functions withSerhiy Storchaka2015-06-281-3/+3
* | PEP 479: Change StopIteration handling inside generators.Yury Selivanov2015-05-091-2/+9
* | Issue #22389: Add contextlib.redirect_stderr().Berker Peksag2014-11-281-13/+27
|/
* Merge removal of issue 20317 debugging code from 3.3Nick Coghlan2014-01-241-3/+1
|\
| * Issue 20317: Remove debugging code from contextlibNick Coghlan2014-01-241-3/+1
* | Merge #20317 from 3.3Nick Coghlan2014-01-221-1/+9
|\ \ | |/
| * Issue #20317: Don't create a reference loop in ExitStackNick Coghlan2014-01-221-1/+9
* | Close #19403: make contextlib.redirect_stdout reentrantNick Coghlan2013-11-031-8/+4
* | Close #19330 by using public classes in contextlibNick Coghlan2013-10-261-41/+39
* | contextlib doc updates and refactoringNick Coghlan2013-10-191-29/+52