65 Commits (6e8dcdaaa49d4313bf9fab9f9923ca5828fbb10e)

Author SHA1 Message Date
Joongi Kim 6e8dcdaaa4
bpo-41229: Update docs for explicit aclose()-required cases and add contextlib.aclosing() method (GH-21545) 5 years ago
Guido van Rossum 48b069a003
bpo-39481: Implementation for PEP 585 (#18239) 6 years ago
Serhiy Storchaka 142566c028
[3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) 7 years ago
Serhiy Storchaka 2085bd0877
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700) 7 years ago
Serhiy Storchaka d53cf99dca
bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705) 7 years ago
Serhiy Storchaka 42a139ed88
bpo-36492: Deprecate passing some arguments as keyword arguments. (GH-12637) 7 years ago
Yury Selivanov 52698c7ad9
bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) 8 years ago
jdemeyer 23ab5ee667 bpo-33265: use an actual method instead of a method-like function in ExitStack (GH-6456) 8 years ago
Martin Teichmann dd0e087edc bpo-30306: release arguments of contextmanager (GH-1500) 8 years ago
Ilya Kulakov 1aa094f740 bpo-29302: Implement contextlib.AsyncExitStack. (#4790) 8 years ago
Jelle Zijlstra 176baa326b bpo-30241: implement contextlib.AbstractAsyncContextManager (#1412) 8 years ago
Jesse-Bakker 0784a2e5b1 bpo-10049: Add a "no-op" (null) context manager to contextlib (GH-4464) 8 years ago
Jelle Zijlstra 57161aac5e bpo-30266: support "= None" pattern in AbstractContextManager (#1448) 9 years ago
Jelle Zijlstra 2e624690bd bpo-29679: Implement @contextlib.asynccontextmanager (#360) 9 years ago
svelankar 00c75e9a45 bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH-949) 9 years ago
amosonn 680e20beee Clarify exception handler scope in contextlib 9 years ago
Nathaniel J. Smith af88e7eda4 bpo-27122: Fix comment to point to correct issue number (#47) 9 years ago
Gregory P. Smith ba2ecd6841 Issue #27123: When an exception is raised within the context being 10 years ago
Brett Cannon 8bd092b501 Normalize whitespace 10 years ago
Brett Cannon 9e080e0e74 Issue #25609: Introduce contextlib.AbstractContextManager and 10 years ago
Serhiy Storchaka 101ff3541c Issue #24336: The contextmanager decorator now works with functions with 11 years ago
Yury Selivanov 8170e8c0d1 PEP 479: Change StopIteration handling inside generators. 11 years ago
Berker Peksag bb44fe0a0b Issue #22389: Add contextlib.redirect_stderr(). 11 years ago
Nick Coghlan add94c9d82 Issue 20317: Remove debugging code from contextlib 12 years ago
Nick Coghlan 09761e7c9c Issue #20317: Don't create a reference loop in ExitStack 12 years ago
Nick Coghlan 8e113b418d Close #19403: make contextlib.redirect_stdout reentrant 13 years ago
Nick Coghlan 059def58a5 Close #19330 by using public classes in contextlib 13 years ago
Nick Coghlan 8608d26e81 contextlib doc updates and refactoring 13 years ago
Nick Coghlan 240f86d7dd Close #19266: contextlib.ignore -> contextlib.suppress 13 years ago
Raymond Hettinger 1254b407ac Rename contextlib.ignored() to contextlib.ignore(). 13 years ago
Raymond Hettinger 088cbf2d39 Issue #15805: Add contextlib.redirect_stdout() 13 years ago
Nick Coghlan 1a33b2f35b Close #19092: ExitStack now reraises exceptions from __exit__ 13 years ago
Raymond Hettinger e318a883fe Issue #15806: Add contextlib.ignored(). 13 years ago
Nick Coghlan 77452fc121 Close #14969: Improve the handling of exception chaining in contextlib.ExitStack 14 years ago
Nick Coghlan a5bd2a18ce Close #14963: Use an iterative algorithm in contextlib.ExitStack.__exit__ (Patch by Alon Horev) 14 years ago
Nick Coghlan 3267a30de1 Close #13585: add contextlib.ExitStack to replace the ill-fated contextlib.nested API 14 years ago
Benjamin Peterson 274271d1ae remove unused imports (closes #12432) 15 years ago
Nick Coghlan fdc2c5596e Remove trailing whitespace 15 years ago
Nick Coghlan 0ded3e307b Issue #11647: allow contextmanager objects to be used as decorators as described in the docs. Initial patch by Ysj Ray. 15 years ago
Antoine Pitrou 67b212e608 Issue #10859: Make `contextlib.GeneratorContextManager` officially 15 years ago
Michael Foord b3a8984488 Issue 9110. Adding ContextDecorator to contextlib. This enables the creation of APIs that act as decorators as well as context managers. contextlib.contextmanager changed to use ContextDecorator. 16 years ago
Benjamin Peterson 04e40c1b48 remove nested from __all__ 17 years ago
Raymond Hettinger 9c4d0edd64 Removed contextlib.nested() 17 years ago
Nick Coghlan b7706b58fa Merged revisions 73518-73519 via svnmerge from 17 years ago
Nick Coghlan 3a1dbb05a1 Remove markup from docstring 17 years ago
Nick Coghlan 0d8b4e33e7 Issue 6288: Update contextlib.nested() docstring to reflect new documentation 17 years ago
Raymond Hettinger 1917ad587f Issue 6256: Fix stacklevel in warning message. 17 years ago
Raymond Hettinger fde29be4d7 Issue 6256: Fix stacklevel in warning message. 17 years ago
Raymond Hettinger 822b87f276 Deprecate contextlib.nested(). The with-statement now provides this functionality directly. 17 years ago
Raymond Hettinger 91e3b9d89d Deprecate contextlib.nested(). The with-statement now provides this functionality directly. 17 years ago