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
70c3875c
Commit
70c3875c
authored
Jun 28, 2009
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fill-in some new news.
parent
9ee9ada4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
Doc/whatsnew/3.2.rst
Doc/whatsnew/3.2.rst
+19
-3
Doc/whatsnew/index.rst
Doc/whatsnew/index.rst
+1
-0
No files found.
Doc/whatsnew/3.2.rst
View file @
70c3875c
****************************
****************************
What's New In Python 3.
1
What's New In Python 3.
2
****************************
****************************
:Author: Raymond Hettinger
:Author: Raymond Hettinger
...
@@ -66,8 +66,24 @@ Some smaller changes made to the core Python language are:
...
@@ -66,8 +66,24 @@ Some smaller changes made to the core Python language are:
New, Improved, and Deprecated Modules
New, Improved, and Deprecated Modules
=====================================
=====================================
* Stub
* The previously deprecated :func:`string.maketrans` function has been
removed in favor of the static methods, :meth:`bytes.maketrans` and
:meth:`bytearray.maketrans`. This change solves the confusion around which
types were supported by the :mod:`string` module. Now, :class:`str`,
:class:`bytes`, and :class:`bytearray` each have their own **maketrans** and
**translate** methods with intermediate translation tables of the
appropriate type.
(Contributed by Georg Brandl; :issue:`5675`.)
* The previously deprecated :func:`contextlib.nested` function has been
removed in favor of a plain :keyword:`with` statement which can
accept multiple context managers. The latter technique is faster
(because it is built-in), and it does a better job finalizing multiple
context managers when one of them raises an exception.
(Contributed by Georg Brandl and Mattias Brändström;
`appspot issue 53094 <http://codereview.appspot.com/53094>`_.)
Optimizations
Optimizations
=============
=============
...
@@ -90,7 +106,7 @@ Changes to Python's build process and to the C API include:
...
@@ -90,7 +106,7 @@ Changes to Python's build process and to the C API include:
* Stub
* Stub
Porting to Python 3.
1
Porting to Python 3.
2
=====================
=====================
This section lists previously described changes and other bugfixes
This section lists previously described changes and other bugfixes
...
...
Doc/whatsnew/index.rst
View file @
70c3875c
...
@@ -11,6 +11,7 @@ anyone wishing to stay up-to-date after a new release.
...
@@ -11,6 +11,7 @@ anyone wishing to stay up-to-date after a new release.
.. toctree::
.. toctree::
:maxdepth: 2
:maxdepth: 2
3.2 rst
3.1.rst
3.1.rst
3.0.rst
3.0.rst
2.7.rst
2.7.rst
...
...
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