Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.9] bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-12620) | Serhiy Storchaka | 2019-06-05 | 1 | -2/+2 |
| | | | Turn deprecation warnings added in 3.8 into TypeError. | ||||
* | bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700) | Serhiy Storchaka | 2019-06-01 | 1 | -1/+1 |
| | |||||
* | bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174) | Serhiy Storchaka | 2018-12-19 | 1 | -7/+7 |
| | |||||
* | Clarify that AsyncExitStack works with coroutine functions (GH-9405) | Nathaniel J. Smith | 2018-09-18 | 1 | -2/+2 |
| | | | | | | | | | | | | The docs were ambiguous about whether you pass in a coroutine function or a coroutine object, e.g. is it: aestack.push_async_exit(some_async_func) or aestack.push_async_exit(some_async_func()) (It's the first one.) | ||||
* | Fixed typo with asynccontextmanager code example (GH-8845) | Alexander Vasin | 2018-08-25 | 1 | -1/+1 |
| | | | `yield conn`, instead of just `yield`. | ||||
* | bpo-33468: Add try-finally contextlib.contextmanager example (GH-7816) | Matthias Bussonnier | 2018-07-23 | 1 | -11/+17 |
| | |||||
* | bpo-34067: Include a more easily understood example for nullcontext (GH-8158) | Daniel Porteous | 2018-07-09 | 1 | -1/+13 |
| | | | Include a more easily understood example for nullcontext | ||||
* | bpo-29302: Implement contextlib.AsyncExitStack. (#4790) | Ilya Kulakov | 2018-01-25 | 1 | -0/+38 |
| | |||||
* | bpo-30241: implement contextlib.AbstractAsyncContextManager (#1412) | Jelle Zijlstra | 2017-12-14 | 1 | -0/+11 |
| | |||||
* | bpo-10049: Add a "no-op" (null) context manager to contextlib (GH-4464) | Jesse-Bakker | 2017-11-23 | 1 | -18/+22 |
| | | | | | Adds a simpler and faster alternative to ExitStack for handling single optional context managers without having to change the lexical structure of your code. | ||||
* | bpo-29679: Implement @contextlib.asynccontextmanager (#360) | Jelle Zijlstra | 2017-05-01 | 1 | -0/+30 |
| | |||||
* | Closes #27904: Improved logging statements to defer formatting until needed. | Vinay Sajip | 2016-08-31 | 1 | -2/+2 |
| | |||||
* | Add a missing :term:. | Brett Cannon | 2016-06-09 | 1 | -1/+1 |
| | |||||
* | Issue #23921: Standardized documentation whitespace formatting. | Serhiy Storchaka | 2016-05-10 | 1 | -1/+1 |
|\ | | | | | | | Original patch by James Edwards. | ||||
| * | Issue #23921: Standardized documentation whitespace formatting. | Serhiy Storchaka | 2016-05-10 | 1 | -1/+1 |
| | | | | | | | | Original patch by James Edwards. | ||||
* | | Issue #25609: Introduce contextlib.AbstractContextManager and | Brett Cannon | 2016-04-08 | 1 | -2/+14 |
|/ | | | | typing.ContextManager. | ||||
* | Remove redundant leading zeroes in PEP references. | Serhiy Storchaka | 2016-03-31 | 1 | -1/+1 |
| | |||||
* | Issue #25523: Merge a-to-an corrections from 3.4. | Serhiy Storchaka | 2015-11-02 | 1 | -1/+1 |
|\ | |||||
| * | Issue #25523: Further a-to-an corrections. | Serhiy Storchaka | 2015-11-02 | 1 | -1/+1 |
| | | |||||
* | | Issue #25161: Merge full stops from 3.4 into 3.5 | Martin Panter | 2015-10-10 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #25161: Add full stops in documentation; patch by Takase Arihiro | Martin Panter | 2015-10-10 | 1 | -1/+1 |
| | | |||||
* | | Issue #22389: Add contextlib.redirect_stderr(). | Berker Peksag | 2014-11-28 | 1 | -0/+10 |
|/ | |||||
* | Issue #21061: correctly note redirect_stdout is reentrant | Nick Coghlan | 2014-10-12 | 1 | -1/+1 |
| | |||||
* | Issue 22603: add missing 'self'. Patch by Francisco Fernández Castaño. | Terry Jan Reedy | 2014-10-10 | 1 | -2/+2 |
| | |||||
* | Issue 21558: Fix a typo in the contextlib docs | Raymond Hettinger | 2014-05-26 | 1 | -1/+1 |
| | |||||
* | Close #19403: make contextlib.redirect_stdout reentrant | Nick Coghlan | 2013-11-03 | 1 | -40/+77 |
| | |||||
* | What's New updates prior to alpha | Nick Coghlan | 2013-10-20 | 1 | -2/+3 |
| | |||||
* | contextlib doc updates and refactoring | Nick Coghlan | 2013-10-19 | 1 | -0/+116 |
| | | | | | | | | | | | - explain single use, reusable and reentrant in docs - converted suppress to a reentrant class based impl - converted redirect_stdout to a reusable impl - moved both suppress and redirect_stdout behind a functional facade - added reentrancy tests for the updated suppress - added reusability tests for the updated redirect_stdio - slightly cleaned up an exception from contextmanager | ||||
* | Close #19266: contextlib.ignore -> contextlib.suppress | Nick Coghlan | 2013-10-17 | 1 | -8/+18 |
| | | | | Patch by Zero Piraeus. | ||||
* | Fix spacing of toplevel items. | Georg Brandl | 2013-10-13 | 1 | -0/+2 |
| | |||||
* | Docs tweaks for contextlib additions | Nick Coghlan | 2013-10-13 | 1 | -2/+12 |
| | |||||
* | Rename contextlib.ignored() to contextlib.ignore(). | Raymond Hettinger | 2013-10-11 | 1 | -3/+3 |
| | |||||
* | Issue #15805: Add contextlib.redirect_stdout() | Raymond Hettinger | 2013-10-10 | 1 | -0/+31 |
| | |||||
* | Merge 3.3 | Barry Warsaw | 2013-05-10 | 1 | -2/+3 |
|\ | |||||
| * | I was confused before. It's correct to not call .close() inside the with | Barry Warsaw | 2013-05-10 | 1 | -2/+3 |
| | | | | | | | | statement, but add a comment that clarifies the purpose of the code. | ||||
* | | Merge 3.3 | Barry Warsaw | 2013-04-19 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Minor typo in example. | Barry Warsaw | 2013-04-19 | 1 | -1/+1 |
| | | |||||
* | | Issue #17586: fix typo in contextlib.rst | Ned Deily | 2013-04-01 | 1 | -1/+1 |
| | | |||||
* | | #17351: merge with 3.3. | Ezio Melotti | 2013-03-11 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #17351: merge with 3.2. | Ezio Melotti | 2013-03-11 | 1 | -1/+1 |
| |\ | |||||
* | | | Issue #15806: Add contextlib.ignored(). | Raymond Hettinger | 2013-03-11 | 1 | -0/+20 |
|/ / | |||||
* | | Issue #16714: use 'raise' exceptions, don't 'throw'. | Andrew Svetlov | 2012-12-18 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by Serhiy Storchaka. | ||||
* | | Typo fix | Nick Coghlan | 2012-05-31 | 1 | -1/+1 |
| | | |||||
* | | Additional ExitStack examples, and a few other cleanups for the ExitStack docs | Nick Coghlan | 2012-05-31 | 1 | -7/+75 |
| | | |||||
* | | Fix the versionadded tags for a couple of my recent changes | Nick Coghlan | 2012-05-22 | 1 | -2/+2 |
| | | |||||
* | | Close #13585: add contextlib.ExitStack to replace the ill-fated ↵ | Nick Coghlan | 2012-05-21 | 1 | -1/+278 |
|/ | | | | contextlib.nested API | ||||
* | Issue #11647: allow contextmanager objects to be used as decorators as ↵ | Nick Coghlan | 2011-05-05 | 1 | -2/+12 |
| | | | | described in the docs. Initial patch by Ysj Ray. | ||||
* | Separate source link from main text. | Raymond Hettinger | 2011-01-10 | 1 | -0/+2 |
| | |||||
* | Move source links to consistent location and remove wordy, big yellow boxes. | Raymond Hettinger | 2011-01-10 | 1 | -5/+1 |
| | |||||
* | Provide links to Python source where the code is short, readable and | Éric Araujo | 2010-11-16 | 1 | -0/+5 |
| | | | | | informative adjunct to the docs. Forward-port of Raymond's r86225 and r86245 using the new source reST role added in #10334. |