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
f4cc2c4a
Commit
f4cc2c4a
authored
Apr 06, 2009
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add example. Fix spelling. Fix patch attribution.
parent
d26b7af6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
Doc/whatsnew/3.1.rst
Doc/whatsnew/3.1.rst
+7
-3
No files found.
Doc/whatsnew/3.1.rst
View file @
f4cc2c4a
...
...
@@ -158,10 +158,14 @@ Some smaller changes made to the core Python language are:
(Contributed by Kevin Walzer and Guilherme Polo; :issue:`2618` and
:issue:`2983`.)
* The :class:`gzip.GzipFile` and :class:`bz2.BZ2File` classs now support
the context manager protocol
.
* The :class:`gzip.GzipFile` and :class:`bz2.BZ2File` class
e
s now support
the context manager protocol
::
(Contributed by Jacques Frechet; :issue:`4272`.)
>>> # Automatically close file after writing
>>> with gzip.GzipFile(filename, "wb") as f:
... f.write(b"xxx")
(Contributed by Antoine Pitrou.)
* The :mod:`Decimal` module now supports two new methods to create a
decimal object that from a binary :class:`float`. The conversion is
...
...
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