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
d3052007
Commit
d3052007
authored
Sep 15, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add entries to whatsnew
parent
cf1dd711
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
Doc/whatsnew/3.2.rst
Doc/whatsnew/3.2.rst
+25
-1
No files found.
Doc/whatsnew/3.2.rst
View file @
d3052007
...
...
@@ -211,6 +211,12 @@ Some smaller changes made to the core Python language are:
(Proposed and implemented by Mark Dickinson; :issue:`9337`.)
* :class:`memoryview` objects now have a :meth:`release()` method and support
the context manager protocol. This allows timely release of any resources
that were acquired when requesting a buffer from the original object.
(Added by Antoine Pitrou; :issue:`9757`.)
* The :func:`functools.wraps` decorator now adds a :attr:`__wrapped__` attribute
pointing to the original callable function. This allows wrapped functions to
be introspected. It also copies :attr:`__annotations__` if defined. And now
...
...
@@ -397,6 +403,14 @@ New, Improved, and Deprecated Modules
5-tuple), and :data:`ssl.OPENSSL_VERSION_NUMBER` (an integer). (Added by
Antoine Pitrou; :issue:`8321`.)
* Instances of :class:`unittest.TestCase` have two new methods
:meth:`~unittest.TestCase.assertWarns` and :meth:`~unittest.TestCase.assertWarnsRegexp`
to check that a given warning type was triggered by the code under test::
with self.assertWarns(DeprecationWarning):
legacy_function('XYZ')
* 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
...
...
@@ -464,7 +478,7 @@ A number of small performance enhancements have been added:
(Contributed by Antoine Pitrou; :issue:`7451`.)
-
Python's peephole optimizer now recognizes patterns such ``x in {1, 2, 3}`` as
*
Python's peephole optimizer now recognizes patterns such ``x in {1, 2, 3}`` as
being a test for membership in a set of constants. The optimizer recasts the
:class:`set` as a :class:`frozenset` and stores the pre-built constant.
...
...
@@ -486,6 +500,14 @@ A number of small performance enhancements have been added:
(Patch by Florent Xicluna in :issue:`7622` and :issue:`7462`.)
* Serializing and unserializing data using the :mod:`pickle` module is now
up to 4x faster, thanks to various optimizations initially contributed
to the Unladen Swalled project.
(Ported to Python 3 by Alexandre Vassalotti and Antoine Pitrou in
:issue:`9410`)
Filenames and Unicode
=====================
...
...
@@ -498,6 +520,8 @@ to ``'mbcs'`` on Windows and ``'utf-8'`` on Mac OS X.
The :mod:`os` module has two new functions: :func:`~os.fsencode` and
:func:`~os.fsdecode`.
.. XXX mention Victor's improvements for support of undecodable filenames.
.. IDLE
====
...
...
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