summaryrefslogtreecommitdiffstats
path: root/Doc/library/contextlib.rst
Commit message (Collapse)AuthorAgeFilesLines
* Closes #27904: Improved logging statements to defer formatting until needed.Vinay Sajip2016-08-311-2/+2
|
* Add a missing :term:.Brett Cannon2016-06-091-1/+1
|
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-1/+1
|\ | | | | | | Original patch by James Edwards.
| * Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-1/+1
| | | | | | | | Original patch by James Edwards.
* | Issue #25609: Introduce contextlib.AbstractContextManager andBrett Cannon2016-04-081-2/+14
|/ | | | typing.ContextManager.
* Remove redundant leading zeroes in PEP references.Serhiy Storchaka2016-03-311-1/+1
|
* Issue #25523: Merge a-to-an corrections from 3.4.Serhiy Storchaka2015-11-021-1/+1
|\
| * Issue #25523: Further a-to-an corrections.Serhiy Storchaka2015-11-021-1/+1
| |
* | Issue #25161: Merge full stops from 3.4 into 3.5Martin Panter2015-10-101-1/+1
|\ \ | |/
| * Issue #25161: Add full stops in documentation; patch by Takase ArihiroMartin Panter2015-10-101-1/+1
| |
* | Issue #22389: Add contextlib.redirect_stderr().Berker Peksag2014-11-281-0/+10
|/
* Issue #21061: correctly note redirect_stdout is reentrantNick Coghlan2014-10-121-1/+1
|
* Issue 22603: add missing 'self'. Patch by Francisco Fernández Castaño.Terry Jan Reedy2014-10-101-2/+2
|
* Issue 21558: Fix a typo in the contextlib docsRaymond Hettinger2014-05-261-1/+1
|
* Close #19403: make contextlib.redirect_stdout reentrantNick Coghlan2013-11-031-40/+77
|
* What's New updates prior to alphaNick Coghlan2013-10-201-2/+3
|
* contextlib doc updates and refactoringNick Coghlan2013-10-191-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.suppressNick Coghlan2013-10-171-8/+18
| | | | Patch by Zero Piraeus.
* Fix spacing of toplevel items.Georg Brandl2013-10-131-0/+2
|
* Docs tweaks for contextlib additionsNick Coghlan2013-10-131-2/+12
|
* Rename contextlib.ignored() to contextlib.ignore().Raymond Hettinger2013-10-111-3/+3
|
* Issue #15805: Add contextlib.redirect_stdout()Raymond Hettinger2013-10-101-0/+31
|
* Merge 3.3Barry Warsaw2013-05-101-2/+3
|\
| * I was confused before. It's correct to not call .close() inside the withBarry Warsaw2013-05-101-2/+3
| | | | | | | | statement, but add a comment that clarifies the purpose of the code.
* | Merge 3.3Barry Warsaw2013-04-191-1/+1
|\ \ | |/
| * Minor typo in example.Barry Warsaw2013-04-191-1/+1
| |
* | Issue #17586: fix typo in contextlib.rstNed Deily2013-04-011-1/+1
| |
* | #17351: merge with 3.3.Ezio Melotti2013-03-111-1/+1
|\ \ | |/
| * #17351: merge with 3.2.Ezio Melotti2013-03-111-1/+1
| |\
* | | Issue #15806: Add contextlib.ignored().Raymond Hettinger2013-03-111-0/+20
|/ /
* | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-1/+1
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
* | Typo fixNick Coghlan2012-05-311-1/+1
| |
* | Additional ExitStack examples, and a few other cleanups for the ExitStack docsNick Coghlan2012-05-311-7/+75
| |
* | Fix the versionadded tags for a couple of my recent changesNick Coghlan2012-05-221-2/+2
| |
* | Close #13585: add contextlib.ExitStack to replace the ill-fated ↵Nick Coghlan2012-05-211-1/+278
|/ | | | contextlib.nested API
* Issue #11647: allow contextmanager objects to be used as decorators as ↵Nick Coghlan2011-05-051-2/+12
| | | | described in the docs. Initial patch by Ysj Ray.
* Separate source link from main text.Raymond Hettinger2011-01-101-0/+2
|
* Move source links to consistent location and remove wordy, big yellow boxes.Raymond Hettinger2011-01-101-5/+1
|
* Provide links to Python source where the code is short, readable andÉric Araujo2010-11-161-0/+5
| | | | | informative adjunct to the docs. Forward-port of Raymond's r86225 and r86245 using the new source reST role added in #10334.
* #6522: add a "decorator" directive to explicitly document decorators, and ↵Georg Brandl2010-07-291-1/+1
| | | | use it in a few places.
* #9110: update to ContextDecorator doc.Georg Brandl2010-07-181-13/+32
|
* Issue 9110. Adding ContextDecorator to contextlib. This enables the creation ↵Michael Foord2010-06-301-0/+57
| | | | of APIs that act as decorators as well as context managers. contextlib.contextmanager changed to use ContextDecorator.
* Removed contextlib.nested()Raymond Hettinger2009-07-011-49/+0
|
* Merged revisions 73465 via svnmerge fromNick Coghlan2009-06-171-11/+29
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73465 | nick.coghlan | 2009-06-17 22:12:15 +1000 (Wed, 17 Jun 2009) | 1 line Issue 6288: update the contextlib.nested() docs to explain why it has been deprecated and should generally be avoided ........
* Recorded merge of revisions 73286 via svnmerge fromGeorg Brandl2009-06-081-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73286 | georg.brandl | 2009-06-08 09:57:35 +0200 (Mo, 08 Jun 2009) | 1 line Remove period from end of headings. ........
* Deprecate contextlib.nested(). The with-statement now provides this ↵Raymond Hettinger2009-05-281-0/+2
| | | | functionality directly.
* Remove surplus empty lines and convert more files to new optional arg style.Georg Brandl2009-05-171-1/+0
|
* Merged revisions ↵Benjamin Peterson2009-03-211-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 70342,70385-70387,70389-70390,70392-70393,70395,70400,70405-70406,70418,70438,70464,70468 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r70342 | georg.brandl | 2009-03-13 14:03:58 -0500 (Fri, 13 Mar 2009) | 1 line #5486: typos. ........ r70385 | benjamin.peterson | 2009-03-15 09:38:55 -0500 (Sun, 15 Mar 2009) | 1 line fix tuple.index() error message #5495 ........ r70386 | georg.brandl | 2009-03-15 16:32:06 -0500 (Sun, 15 Mar 2009) | 1 line #5496: fix docstring of lookup(). ........ r70387 | georg.brandl | 2009-03-15 16:37:16 -0500 (Sun, 15 Mar 2009) | 1 line #5493: clarify __nonzero__ docs. ........ r70389 | georg.brandl | 2009-03-15 16:43:38 -0500 (Sun, 15 Mar 2009) | 1 line Fix a small nit in the error message if bool() falls back on __len__ and it returns the wrong type: it would tell the user that __nonzero__ should return bool or int. ........ r70390 | georg.brandl | 2009-03-15 16:44:43 -0500 (Sun, 15 Mar 2009) | 1 line #5491: clarify nested() semantics. ........ r70392 | georg.brandl | 2009-03-15 16:46:00 -0500 (Sun, 15 Mar 2009) | 1 line #5488: add missing struct member. ........ r70393 | georg.brandl | 2009-03-15 16:47:42 -0500 (Sun, 15 Mar 2009) | 1 line #5478: fix copy-paste oversight in function signature. ........ r70395 | georg.brandl | 2009-03-15 16:51:48 -0500 (Sun, 15 Mar 2009) | 1 line #5276: document IDLESTARTUP and .Idle.py. ........ r70400 | georg.brandl | 2009-03-15 16:59:37 -0500 (Sun, 15 Mar 2009) | 3 lines Fix markup in re docs and give a mail address in regex howto, so that the recommendation to send suggestions to the author can be followed. ........ r70405 | georg.brandl | 2009-03-15 17:11:07 -0500 (Sun, 15 Mar 2009) | 7 lines Move the previously local import of threading to module level. This is cleaner and avoids lockups in obscure cases where a Queue is instantiated while the import lock is already held by another thread. OKed by Tim Peters. ........ r70406 | hirokazu.yamamoto | 2009-03-15 17:43:14 -0500 (Sun, 15 Mar 2009) | 1 line Added skip for old MSVC. ........ r70418 | georg.brandl | 2009-03-16 14:42:03 -0500 (Mon, 16 Mar 2009) | 1 line Add token markup. ........ r70438 | benjamin.peterson | 2009-03-17 15:29:51 -0500 (Tue, 17 Mar 2009) | 1 line I thought this was begging for an example ........ r70464 | benjamin.peterson | 2009-03-18 15:58:09 -0500 (Wed, 18 Mar 2009) | 1 line a much better example ........ r70468 | benjamin.peterson | 2009-03-18 22:04:31 -0500 (Wed, 18 Mar 2009) | 1 line close files after comparing them ........
* Review the doc changes for the urllib package creation.Georg Brandl2008-06-231-2/+2
|
* Documentation updates for urllib package. Modified the documentation for theSenthil Kumaran2008-06-231-2/+2
| | | | | | | | | | | | urllib,urllib2 -> urllib.request,urllib.error urlparse -> urllib.parse RobotParser -> urllib.robotparser Updated tutorial references and other module references (http.client.rst, ftplib.rst,contextlib.rst) Updated the examples in the urllib2-howto Addresses Issue3142.