41 Commits (83000a490a36f4c3c579151ff09eeb4875d0d4cd)

Author SHA1 Message Date
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 12 years ago
Nick Coghlan 059def58a5 Close #19330 by using public classes in contextlib 12 years ago
Nick Coghlan 8608d26e81 contextlib doc updates and refactoring 12 years ago
Nick Coghlan 240f86d7dd Close #19266: contextlib.ignore -> contextlib.suppress 12 years ago
Raymond Hettinger 1254b407ac Rename contextlib.ignored() to contextlib.ignore(). 12 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
Christian Heimes 81ee3efede Merged revisions 62425-62429,62434-62436,62441,62444,62446-62448,62450-62455,62463,62465-62466,62469,62474,62476-62478,62480,62485,62492,62497-62498,62500,62507,62513-62514,62516,62521,62531,62535,62545-62546,62548-62551,62553-62559,62569,62574,62577,62593,62595,62604-62606,62608,62616,62626-62627,62636,62638,62644-62645,62647-62648,62651-62653,62656,62661,62663,62680,62686-62687,62696,62699-62703,62711 via svnmerge from 18 years ago
Georg Brandl 655fc7012a #1748: use functools.wraps instead of rolling own metadata update. 18 years ago
Nick Coghlan e53fcfd7d3 Fix issue #1705170 (backport from trunk) 19 years ago
Guido van Rossum 2cc30daa86 Merged revisions 58742-58816 via svnmerge from 19 years ago
Nick Coghlan 3814a911aa Fix for bug 1705170 - contextmanager swallowing StopIteration (2.5 backport candidate) 19 years ago
Collin Winter c59dacdbd8 Fix a poorly-translated raise statement in contextlib. 19 years ago
Collin Winter 828f04ac3f Issue #1066: implement PEP 3109, 2/3 of PEP 3134. 19 years ago
Guido van Rossum 04110fb859 Merged revisions 57221-57391 via svnmerge from 19 years ago
Georg Brandl ac4018ae39 Use try-except-finally in contextlib. 19 years ago
Georg Brandl a18af4e7a2 PEP 3114: rename .next() to .__next__() and add next() builtin. 19 years ago
Guido van Rossum b940e113bf SF patch 1631942 by Collin Winter: 19 years ago
Thomas Wouters 477c8d5e70 Much-needed merge (using svnmerge.py this time) of trunk changes into p3yk. 20 years ago
Nick Coghlan afd5e63e24 Finish bringing SVN into line with latest version of PEP 343 by getting rid of all remaining references to context objects that I could find. Without a __context__() method context objects no longer exist. Also get test_with working again, and adopt a suggestion from Neal for decimal.Context.get_manager() 20 years ago
Guido van Rossum da5b701aee Get rid of __context__, per the latest changes to PEP 343 and python-dev 20 years ago
Brett Cannon 1e01397533 Fix docstring for contextfactory; mentioned old contextmanager name. 20 years ago
Nick Coghlan a7e820a408 Move the PEP 343 documentation and implementation closer to the 20 years ago
Nick Coghlan da2268feec Fix contextlib.nested to cope with exit methods raising and handling exceptions 20 years ago
Thomas Wouters 49fd7fa443 Merge p3yk branch with the trunk up to revision 45595. This breaks a fair 20 years ago
Phillip J. Eby 93149d935d Minor clarity edit to contextlib per Guido's request. 20 years ago
Phillip J. Eby 9388020b86 Fix typos; enhance comments on patch for SF #1462485. 20 years ago
Phillip J. Eby 9444bd51c4 Fix SF#1462485: StopIteration raised in body of 'with' statement suppressed 20 years ago
Phillip J. Eby 35fd142435 Fix contextlib not copying function attributes 20 years ago