Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f61a2d

Browse files
committed
A few tweaks to whatsnew/3.3 (fixes #14362)
1 parent 828efde commit 4f61a2d

2 files changed

Lines changed: 43 additions & 10 deletions

File tree

Doc/whatsnew/3.3.rst

Lines changed: 41 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,26 @@ versions.
574574

575575
The ``unicode_internal`` codec has been deprecated.
576576

577+
578+
collections
579+
-----------
580+
581+
Addition of a new :class:`~collections.ChainMap` class to allow treating a
582+
number of mappings as a single unit.
583+
584+
(Written by Raymond Hettinger for :issue:`11089`, made public in
585+
:issue:`11297`)
586+
587+
The abstract base classes have been moved in a new :mod:`collections.abc`
588+
module, to better differentiate between the abstract and the concrete
589+
collections classes. Aliases for ABCs are still present in the
590+
:mod:`collections` module to preserve existing imports.
591+
592+
(:issue:`11085`)
593+
594+
.. XXX addition of __slots__ to ABCs not recorded here: internal detail
595+
596+
577597
crypt
578598
-----
579599

@@ -867,11 +887,12 @@ packaging
867887
---------
868888

869889
:mod:`distutils` has undergone additions and refactoring under a new name,
870-
:mod:`packaging`, to allow developers to break backward compatibility.
890+
:mod:`packaging`, to allow developers to make far-reaching changes without
891+
being constrained by backward compatibility.
871892
:mod:`distutils` is still provided in the standard library, but users are
872893
encouraged to transition to :mod:`packaging`. For older versions of Python, a
873-
backport compatible with 2.4+ and 3.1+ will be made available on PyPI under the
874-
name :mod:`distutils2`.
894+
backport compatible with Python 2.5 and newer and 3.2 is available on PyPI
895+
under the name `distutils2 <http://pypi.python.org/pypi/Distutils2>`_.
875896

876897
.. TODO add examples and howto to the packaging docs and link to them
877898
@@ -1059,12 +1080,24 @@ should be used. For example, this will send a ``'HEAD'`` request::
10591080
(:issue:`1673007`)
10601081

10611082

1083+
webbrowser
1084+
----------
1085+
1086+
The :mod:`webbrowser` module supports more browsers: Google Chrome (named
1087+
:program:`chrome`, :program:`chromium`, :program:`chrome-browser` or
1088+
:program:`chromium-browser` depending on the version and operating system) as
1089+
well as the the generic launchers :program:`xdg-open` from the FreeDesktop.org
1090+
project and :program:`gvfs-open` which is the default URI handler for GNOME 3.
1091+
1092+
(:issue:`13620` and :issue:`14493`)
1093+
1094+
10621095
Optimizations
10631096
=============
10641097

10651098
Major performance enhancements have been added:
10661099

1067-
* Thanks to the :pep:`393`, some operations on Unicode strings has been optimized:
1100+
* Thanks to :pep:`393`, some operations on Unicode strings have been optimized:
10681101

10691102
* the memory footprint is divided by 2 to 4 depending on the text
10701103
* encode an ASCII string to UTF-8 doesn't need to encode characters anymore,
@@ -1083,7 +1116,7 @@ Changes to Python's build process and to the C API include:
10831116

10841117
* :c:func:`PyMemoryView_FromMemory`
10851118

1086-
* The :pep:`393` added new Unicode types, macros and functions:
1119+
* :pep:`393` added new Unicode types, macros and functions:
10871120

10881121
* High-level API:
10891122

@@ -1126,7 +1159,7 @@ are no longer supported due to maintenance burden.
11261159
Deprecated Python modules, functions and methods
11271160
------------------------------------------------
11281161

1129-
* The :mod:`distutils` modules has been deprecated. Use the new
1162+
* The :mod:`distutils` module has been deprecated. Use the new
11301163
:mod:`packaging` module instead.
11311164
* The ``unicode_internal`` codec has been deprecated because of the
11321165
:pep:`393`, use UTF-8, UTF-16 (``utf-16-le`` or ``utf-16-be``), or UTF-32
@@ -1145,7 +1178,7 @@ Deprecated Python modules, functions and methods
11451178
Deprecated functions and types of the C API
11461179
-------------------------------------------
11471180

1148-
The :c:type:`Py_UNICODE` has been deprecated by the :pep:`393` and will be
1181+
The :c:type:`Py_UNICODE` has been deprecated by :pep:`393` and will be
11491182
removed in Python 4. All functions using this type are deprecated:
11501183

11511184
Unicode functions and methods using :c:type:`Py_UNICODE` and
@@ -1247,7 +1280,7 @@ Porting C code
12471280
functions using this type are deprecated (but will stay available for
12481281
at least five years). If you were using low-level Unicode APIs to
12491282
construct and access unicode objects and you want to benefit of the
1250-
memory footprint reduction provided by the PEP 393, you have to convert
1283+
memory footprint reduction provided by PEP 393, you have to convert
12511284
your code to the new :doc:`Unicode API <../c-api/unicode>`.
12521285

12531286
However, if you only have been using high-level functions such as

Misc/NEWS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Library
2929
a multiprocessing Client or Listener with an AF_PIPE type address under
3030
non-Windows platforms. Patch by Popa Claudiu.
3131

32-
- Issue #14493: Use gvfs-open/xdg-open in Lib/webbrowser.py.
32+
- Issue #14493: Use gvfs-open or xdg-open in webbrowser.
3333

3434

3535
What's New in Python 3.3.0 Alpha 2?
@@ -1007,7 +1007,7 @@ Library
10071007

10081008
- Issue #11006: Don't issue low level warning in subprocess when pipe2() fails.
10091009

1010-
- Issue #13620: Support for Chrome browser in webbrowser.py Patch contributed
1010+
- Issue #13620: Support for Chrome browser in webbrowser. Patch contributed
10111011
by Arnaud Calmettes.
10121012

10131013
- Issue #11829: Fix code execution holes in inspect.getattr_static for

0 commit comments

Comments
 (0)