@@ -1633,11 +1633,6 @@ Some smaller changes made to the core Python language are:
16331633 :cfunc: `PyObject_HashNotImplemented `.
16341634 (Fixed by Nick Coghlan and Amaury Forgeot d'Arc; :issue: `2235 `.)
16351635
1636- * Changes to the :class: `Exception ` interface
1637- as dictated by :pep: `352 ` continue to be made. For 2.6,
1638- the :attr: `message ` attribute is being deprecated in favor of the
1639- :attr: `args ` attribute.
1640-
16411636* The :exc: `GeneratorExit ` exception now subclasses
16421637 :exc: `BaseException ` instead of :exc: `Exception `. This means
16431638 that an exception handler that does ``except Exception: ``
@@ -1774,45 +1769,15 @@ by Martin von Loewis.)
17741769
17751770.. ======================================================================
17761771
1777- New, Improved, and Deprecated Modules
1778- =====================================
1772+ New and Improved Modules
1773+ ========================
17791774
17801775As in every release, Python's standard library received a number of
17811776enhancements and bug fixes. Here's a partial list of the most notable
17821777changes, sorted alphabetically by module name. Consult the
17831778:file: `Misc/NEWS ` file in the source tree for a more complete list of
17841779changes, or look through the Subversion logs for all the details.
17851780
1786- * (3.0-warning mode) Python 3.0 will feature a reorganized standard
1787- library that will drop many outdated modules and rename others.
1788- Python 2.6 running in 3.0-warning mode will warn about these modules
1789- when they are imported.
1790-
1791- The list of deprecated modules is:
1792- :mod: `audiodev `,
1793- :mod: `bgenlocations `,
1794- :mod: `buildtools `,
1795- :mod: `bundlebuilder `,
1796- :mod: `Canvas `,
1797- :mod: `compiler `,
1798- :mod: `dircache `,
1799- :mod: `dl `,
1800- :mod: `fpformat `,
1801- :mod: `gensuitemodule `,
1802- :mod: `ihooks `,
1803- :mod: `imageop `,
1804- :mod: `imgfile `,
1805- :mod: `linuxaudiodev `,
1806- :mod: `mhlib `,
1807- :mod: `mimetools `,
1808- :mod: `multifile `,
1809- :mod: `new `,
1810- :mod: `pure `,
1811- :mod: `statvfs `,
1812- :mod: `sunaudiodev `,
1813- :mod: `test.testall `, and
1814- :mod: `toaiff `.
1815-
18161781* The :mod: `asyncore ` and :mod: `asynchat ` modules are
18171782 being actively maintained again, and a number of patches and bugfixes
18181783 were applied. (Maintained by Josiah Carlson; see :issue: `1736190 ` for
@@ -1997,8 +1962,6 @@ changes, or look through the Subversion logs for all the details.
19971962 a Unicode path was used and Unicode filenames are matched within the
19981963 directory. (:issue: `1001604 `)
19991964
2000- * The :mod: `gopherlib ` module has been removed.
2001-
20021965* A new function in the :mod: `heapq ` module, ``merge(iter1, iter2, ...) ``,
20031966 takes any number of iterables returning data in sorted
20041967 order, and returns a new generator that returns the contents of all
@@ -2158,13 +2121,6 @@ changes, or look through the Subversion logs for all the details.
21582121
21592122 (Contributed by Christian Heimes and Mark Dickinson.)
21602123
2161- * The :mod: `MimeWriter ` module and :mod: `mimify ` module
2162- have been deprecated; use the :mod: `email `
2163- package instead.
2164-
2165- * The :mod: `md5 ` module has been deprecated; use the :mod: `hashlib ` module
2166- instead.
2167-
21682124* :class: `mmap ` objects now have a :meth: `rfind ` method that searches for a
21692125 substring beginning at the end of the string and searching
21702126 backwards. The :meth: `find ` method also gained an *end * parameter
@@ -2247,10 +2203,7 @@ changes, or look through the Subversion logs for all the details.
22472203 and can optionally take new command-line arguments for the program.
22482204 (Contributed by Rocky Bernstein; :issue: `1393667 `.)
22492205
2250- * The :mod: `posixfile ` module has been deprecated; :func: `fcntl.lockf `
2251- provides better locking.
2252-
2253- The :func: `post_mortem ` function, used to begin debugging a
2206+ * The :func: `pdb.post_mortem ` function, used to begin debugging a
22542207 traceback, will now use the traceback returned by :func: `sys.exc_info `
22552208 if no traceback is supplied. (Contributed by Facundo Batista;
22562209 :issue: `1106316 `.)
@@ -2260,9 +2213,6 @@ changes, or look through the Subversion logs for all the details.
22602213 opcodes, returning a shorter pickle that contains the same data structure.
22612214 (Contributed by Raymond Hettinger.)
22622215
2263- * The :mod: `popen2 ` module has been deprecated; use the :mod: `subprocess `
2264- module.
2265-
22662216* A :func: `get_data ` function was added to the :mod: `pkgutil `
22672217 module that returns the contents of resource files included
22682218 with an installed Python package. For example::
@@ -2318,8 +2268,6 @@ changes, or look through the Subversion logs for all the details.
23182268 (Contributed by Guido van Rossum from work for Google App Engine;
23192269 :issue: `3487 `.)
23202270
2321- * The :mod: `rgbimg ` module has been removed.
2322-
23232271* The :mod: `rlcompleter ` module's :meth: `Completer.complete() ` method
23242272 will now ignore exceptions triggered while evaluating a name.
23252273 (Fixed by Lorenz Quack; :issue: `2250 `.)
@@ -2338,12 +2286,6 @@ changes, or look through the Subversion logs for all the details.
23382286 for that file.
23392287 (Contributed by Christian Heimes; :issue: `1657 `.)
23402288
2341- * The :mod: `sets ` module has been deprecated; it's better to
2342- use the built-in :class: `set ` and :class: `frozenset ` types.
2343-
2344- * The :mod: `sha ` module has been deprecated; use the :mod: `hashlib ` module
2345- instead.
2346-
23472289* The :func: `shutil.copytree ` function now has an optional *ignore * argument
23482290 that takes a callable object. This callable will receive each directory path
23492291 and a list of the directory's contents, and returns a list of names that
@@ -2406,7 +2348,7 @@ changes, or look through the Subversion logs for all the details.
24062348 e-mail between agents that don't manage a mail queue. (LMTP
24072349 implemented by Leif Hedstrom; :issue: `957003 `.)
24082350
2409- SMTP.starttls() now complies with :rfc: `3207 ` and forgets any
2351+ :meth: ` SMTP.starttls ` now complies with :rfc: `3207 ` and forgets any
24102352 knowledge obtained from the server not obtained from the TLS
24112353 negotiation itself. (Patch contributed by Bill Fenner;
24122354 :issue: `829951 `.)
@@ -2955,6 +2897,73 @@ obtain certificate info by calling the :meth:`getpeercert` method.
29552897
29562898.. ======================================================================
29572899
2900+ Deprecations and Removals
2901+ =========================
2902+
2903+ * String exceptions have been removed. Attempting to use them raises a
2904+ :exc: `TypeError `.
2905+
2906+ * Changes to the :class: `Exception ` interface
2907+ as dictated by :pep: `352 ` continue to be made. For 2.6,
2908+ the :attr: `message ` attribute is being deprecated in favor of the
2909+ :attr: `args ` attribute.
2910+
2911+ * (3.0-warning mode) Python 3.0 will feature a reorganized standard
2912+ library that will drop many outdated modules and rename others.
2913+ Python 2.6 running in 3.0-warning mode will warn about these modules
2914+ when they are imported.
2915+
2916+ The list of deprecated modules is:
2917+ :mod: `audiodev `,
2918+ :mod: `bgenlocations `,
2919+ :mod: `buildtools `,
2920+ :mod: `bundlebuilder `,
2921+ :mod: `Canvas `,
2922+ :mod: `compiler `,
2923+ :mod: `dircache `,
2924+ :mod: `dl `,
2925+ :mod: `fpformat `,
2926+ :mod: `gensuitemodule `,
2927+ :mod: `ihooks `,
2928+ :mod: `imageop `,
2929+ :mod: `imgfile `,
2930+ :mod: `linuxaudiodev `,
2931+ :mod: `mhlib `,
2932+ :mod: `mimetools `,
2933+ :mod: `multifile `,
2934+ :mod: `new `,
2935+ :mod: `pure `,
2936+ :mod: `statvfs `,
2937+ :mod: `sunaudiodev `,
2938+ :mod: `test.testall `, and
2939+ :mod: `toaiff `.
2940+
2941+ * The :mod: `gopherlib ` module has been removed.
2942+
2943+ * The :mod: `MimeWriter ` module and :mod: `mimify ` module
2944+ have been deprecated; use the :mod: `email `
2945+ package instead.
2946+
2947+ * The :mod: `md5 ` module has been deprecated; use the :mod: `hashlib ` module
2948+ instead.
2949+
2950+ * The :mod: `posixfile ` module has been deprecated; :func: `fcntl.lockf `
2951+ provides better locking.
2952+
2953+ * The :mod: `popen2 ` module has been deprecated; use the :mod: `subprocess `
2954+ module.
2955+
2956+ * The :mod: `rgbimg ` module has been removed.
2957+
2958+ * The :mod: `sets ` module has been deprecated; it's better to
2959+ use the built-in :class: `set ` and :class: `frozenset ` types.
2960+
2961+ * The :mod: `sha ` module has been deprecated; use the :mod: `hashlib ` module
2962+ instead.
2963+
2964+
2965+ .. ======================================================================
2966+
29582967
29592968 Build and C API Changes
29602969=======================
0 commit comments