Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
581448be
Commit
581448be
authored
Sep 10, 2014
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #22369: Change "context manager protocol" to "context management protocol".
parent
ceaf6827
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Doc/library/tarfile.rst
Doc/library/tarfile.rst
+1
-1
Doc/whatsnew/2.7.rst
Doc/whatsnew/2.7.rst
+1
-1
Misc/NEWS
Misc/NEWS
+3
-3
No files found.
Doc/library/tarfile.rst
View file @
581448be
...
...
@@ -247,7 +247,7 @@ be finalized; only the internally used file object will be closed. See the
:ref:`tar-examples` section for a use case.
.. versionadded:: 2.7
Added support for the context manage
r
protocol.
Added support for the context manage
ment
protocol.
.. class:: TarFile(name=None, mode='r', fileobj=None, format=DEFAULT_FORMAT, tarinfo=TarInfo, dereference=False, ignore_zeros=False, encoding=ENCODING, errors=None, pax_headers=None, debug=0, errorlevel=0)
...
...
Doc/whatsnew/2.7.rst
View file @
581448be
...
...
@@ -1612,7 +1612,7 @@ changes, or look through the Subversion logs for all the details.
resulting archive. This is more powerful than the existing
*exclude* argument, which has therefore been deprecated.
(Added by Lars Gustäbel; :issue:`6856`.)
The :class:`~tarfile.TarFile` class also now supports the context manage
r
protocol.
The :class:`~tarfile.TarFile` class also now supports the context manage
ment
protocol.
(Added by Lars Gustäbel; :issue:`7232`.)
* The :meth:`~threading.Event.wait` method of the :class:`threading.Event` class
...
...
Misc/NEWS
View file @
581448be
...
...
@@ -5120,7 +5120,7 @@ Library
-
Issue
#
7494
:
Fix
a
crash
in
``
_lsprof
``
(
cProfile
)
after
clearing
the
profiler
,
reset
also
the
pointer
to
the
current
pointer
context
.
-
Issue
#
7232
:
Add
support
for
the
context
manage
r
protocol
to
the
-
Issue
#
7232
:
Add
support
for
the
context
manage
ment
protocol
to
the
``
tarfile
.
TarFile
``
class
.
-
Issue
#
7250
:
Fix
info
leak
of
os
.
environ
across
multi
-
run
uses
of
...
...
@@ -6870,7 +6870,7 @@ Library
- Issue #1696199: Add collections.Counter() for rapid and convenient counting.
- Issue #3860: GzipFile and BZ2File now support the context manage
r
protocol.
- Issue #3860: GzipFile and BZ2File now support the context manage
ment
protocol.
- Issue #4272: Add an optional argument to the GzipFile constructor to override
the timestamp in the gzip stream. The default value remains the current time.
...
...
@@ -10039,7 +10039,7 @@ Extension Modules
parameter.
- _winreg's HKEY object has gained __enter__ and __exit__ methods to
support the context manage
r
protocol. The _winreg module also
support the context manage
ment
protocol. The _winreg module also
gained a new function ``ExpandEnvironmentStrings`` to expand
REG_EXPAND_SZ keys.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment