@@ -122,7 +122,7 @@ Significantly improved library modules:
122
122
on Unix <whatsnew-multiprocessing-no-fork>` (:issue: `8713 `).
123
123
* :mod: `email ` has a new submodule, :mod: `~email.contentmanager `, and
124
124
a new :mod: `~email.message.Message ` subclass
125
- (:class: `~email.contentmanager .EmailMessage `) that :ref: `simplify MIME
125
+ (:class: `~email.message .EmailMessage `) that :ref: `simplify MIME
126
126
handling <whatsnew_email_contentmanager>` (:issue: `18891 `).
127
127
* The :mod: `inspect ` and :mod: `pydoc ` modules are now capable of
128
128
correct introspection of a much wider variety of callable objects,
@@ -154,7 +154,7 @@ Security improvements:
154
154
<whatsnew34-sslcontext>`.
155
155
* All modules in the standard library that support SSL now support server
156
156
certificate verification, including hostname matching
157
- (:func: `ssl.match_hostname `) and CRLs (Certificate Revocation lists, see
157
+ (:func: `! ssl.match_hostname `) and CRLs (Certificate Revocation lists, see
158
158
:func: `ssl.SSLContext.load_verify_locations `).
159
159
160
160
CPython implementation improvements:
@@ -739,7 +739,7 @@ these new components.
739
739
In addition, a new application-friendly class :class: `~dis.Bytecode ` provides
740
740
an object-oriented API for inspecting bytecode in both in human-readable form
741
741
and for iterating over instructions. The :class: `~dis.Bytecode ` constructor
742
- takes the same arguments that :func: `~dis.get_instruction ` does (plus an
742
+ takes the same arguments that :func: `~dis.get_instructions ` does (plus an
743
743
optional *current_offset *), and the resulting object can be iterated to produce
744
744
:class: `~dis.Instruction ` objects. But it also has a :mod: `~dis.Bytecode.dis `
745
745
method, equivalent to calling :mod: `~dis.dis ` on the constructor argument, but
958
958
optional additional *explain * parameter which can be used to provide an
959
959
extended error description, overriding the hardcoded default if there is one.
960
960
This extended error description will be formatted using the
961
- :attr: `~http.server.HTTP.error_message_format ` attribute and sent as the body
962
- of the error response. (Contributed by Karl Cow in :issue: `12921 `.)
961
+ :attr: `~http.server.BaseHTTPRequestHandler.error_message_format ` attribute
962
+ and sent as the body of the error response.
963
+ (Contributed by Karl Cow in :issue: `12921 `.)
963
964
964
965
The :mod: `http.server ` :ref: `command line interface <http-server-cli >` now has
965
966
a ``-b/--bind `` option that causes the server to listen on a specific address.
@@ -1221,7 +1222,7 @@ pickle
1221
1222
:mod: `pickle ` now supports (but does not use by default) a new pickle protocol,
1222
1223
protocol 4. This new protocol addresses a number of issues that were present
1223
1224
in previous protocols, such as the serialization of nested classes, very large
1224
- strings and containers, and classes whose :meth: `__new__ ` method takes
1225
+ strings and containers, and classes whose :meth: `~object. __new__ ` method takes
1225
1226
keyword-only arguments. It also provides some efficiency improvements.
1226
1227
1227
1228
.. seealso ::
@@ -1299,7 +1300,7 @@ affect the behaviour of :func:`help`.
1299
1300
re
1300
1301
--
1301
1302
1302
- New :func: `~re.fullmatch ` function and :meth: `.regex .fullmatch ` method anchor
1303
+ New :func: `~re.fullmatch ` function and :meth: `.Pattern .fullmatch ` method anchor
1303
1304
the pattern at both ends of the string to match. This provides a way to be
1304
1305
explicit about the goal of the match, which avoids a class of subtle bugs where
1305
1306
``$ `` characters get lost during code changes or the addition of alternatives
@@ -1519,7 +1520,7 @@ subprocess
1519
1520
be used to provide the contents of ``stdin `` for the command that is run.
1520
1521
(Contributed by Zack Weinberg in :issue: `16624 `.)
1521
1522
1522
- :func: `~subprocess.getstatus ` and :func: `~subprocess.getstatusoutput ` now
1523
+ :func: `~subprocess.getoutput ` and :func: `~subprocess.getstatusoutput ` now
1523
1524
work on Windows. This change was actually inadvertently made in 3.3.4.
1524
1525
(Contributed by Tim Golden in :issue: `10197 `.)
1525
1526
@@ -1535,7 +1536,7 @@ plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.)
1535
1536
called automatically at the end of the block. (Contributed by Serhiy Storchaka
1536
1537
in :issue: `18878 `.)
1537
1538
1538
- :meth: `. AU_write.setsampwidth ` now supports 24 bit samples, thus adding
1539
+ :meth: `! AU_write.setsampwidth ` now supports 24 bit samples, thus adding
1539
1540
support for writing 24 sample using the module. (Contributed by
1540
1541
Serhiy Storchaka in :issue: `19261 `.)
1541
1542
@@ -1615,7 +1616,7 @@ A new :func:`~types.DynamicClassAttribute` descriptor provides a way to define
1615
1616
an attribute that acts normally when looked up through an instance object, but
1616
1617
which is routed to the *class * ``__getattr__ `` when looked up through the
1617
1618
class. This allows one to have properties active on a class, and have virtual
1618
- attributes on the class with the same name (see :mod: `Enum ` for an example).
1619
+ attributes on the class with the same name (see :mod: `enum ` for an example).
1619
1620
(Contributed by Ethan Furman in :issue: `19030 `.)
1620
1621
1621
1622
@@ -1709,7 +1710,7 @@ matching calls, which means an argument can now be matched by either position
1709
1710
or name, instead of only by position. (Contributed by Antoine Pitrou in
1710
1711
:issue: `17015 `.)
1711
1712
1712
- :func: `~mock.mock_open ` objects now have ``readline `` and ``readlines ``
1713
+ :func: `~unittest. mock.mock_open ` objects now have ``readline `` and ``readlines ``
1713
1714
methods. (Contributed by Toshio Kuratomi in :issue: `17467 `.)
1714
1715
1715
1716
@@ -1729,8 +1730,8 @@ installed in the virtual environment. (Contributed by Nick Coghlan in
1729
1730
wave
1730
1731
----
1731
1732
1732
- The :meth: `~wave.getparams ` method now returns a namedtuple rather than a
1733
- plain tuple. (Contributed by Claudiu Popa in :issue: `17487 `.)
1733
+ The :meth: `~wave.Wave_read. getparams ` method now returns a namedtuple rather
1734
+ than a plain tuple. (Contributed by Claudiu Popa in :issue: `17487 `.)
1734
1735
1735
1736
:meth: `wave.open ` now supports the context management protocol. (Contributed
1736
1737
by Claudiu Popa in :issue: `17616 `.)
@@ -1788,7 +1789,7 @@ example, this could be used to exclude test files from the archive.
1788
1789
(Contributed by Christian Tismer in :issue: `19274 `.)
1789
1790
1790
1791
The *allowZip64 * parameter to :class: `~zipfile.ZipFile ` and
1791
- :class: `~zipfile.PyZipfile ` is now ``True `` by default. (Contributed by
1792
+ :class: `~zipfile.PyZipFile ` is now ``True `` by default. (Contributed by
1792
1793
William Mallard in :issue: `17201 `.)
1793
1794
1794
1795
@@ -1817,7 +1818,7 @@ PEP 442: Safe Object Finalization
1817
1818
---------------------------------
1818
1819
1819
1820
:pep: `442 ` removes the current limitations and quirks of object finalization
1820
- in CPython. With it, objects with :meth: `__del__ ` methods, as well as
1821
+ in CPython. With it, objects with :meth: `~object. __del__ ` methods, as well as
1821
1822
generators with :keyword: `finally ` clauses, can be finalized when they are
1822
1823
part of a reference cycle.
1823
1824
@@ -2043,7 +2044,7 @@ Significant Optimizations
2043
2044
strings is now significantly faster. (Contributed by Victor Stinner and
2044
2045
Antoine Pitrou in :issue: `15596 `.)
2045
2046
2046
- * A performance issue in :meth: `io.FileIO.readall ` has been solved. This
2047
+ * A performance issue in :meth: `! io.FileIO.readall ` has been solved. This
2047
2048
particularly affects Windows, and significantly speeds up the case of piping
2048
2049
significant amounts of data through :mod: `subprocess `. (Contributed
2049
2050
by Richard Oudkerk in :issue: `15758 `.)
@@ -2103,7 +2104,7 @@ Deprecations in the Python API
2103
2104
* The :mod: `!imp ` module is pending deprecation. To keep compatibility with
2104
2105
Python 2/3 code bases, the module's removal is currently not scheduled.
2105
2106
2106
- * The :mod: `formatter ` module is pending deprecation and is slated for removal
2107
+ * The :mod: `! formatter ` module is pending deprecation and is slated for removal
2107
2108
in Python 3.6.
2108
2109
2109
2110
* ``MD5 `` as the default *digestmod * for the :func: `hmac.new ` function is
@@ -2120,11 +2121,11 @@ Deprecations in the Python API
2120
2121
2121
2122
* The *strict * argument of :class: `~html.parser.HTMLParser ` is deprecated.
2122
2123
2123
- * The :mod: `plistlib ` :func: `~plistlib. readPlist `,
2124
- :func: `~plistlib. writePlist `, :func: `~plistlib. readPlistFromBytes `, and
2125
- :func: `~plistlib. writePlistToBytes ` functions are deprecated in favor of the
2124
+ * The :mod: `plistlib ` :func: `! readPlist `,
2125
+ :func: `! writePlist `, :func: `! readPlistFromBytes `, and
2126
+ :func: `! writePlistToBytes ` functions are deprecated in favor of the
2126
2127
corresponding new functions :func: `~plistlib.load `, :func: `~plistlib.dump `,
2127
- :func: `~plistlib.loads `, and :func: `~plistlib.dumps `. :func: `~plistlib. Data `
2128
+ :func: `~plistlib.loads `, and :func: `~plistlib.dumps `. :func: `! Data `
2128
2129
is deprecated in favor of just using the :class: `bytes ` constructor.
2129
2130
2130
2131
* The :mod: `sysconfig ` key ``SO `` is deprecated, it has been replaced by
@@ -2212,8 +2213,8 @@ removed:
2212
2213
that do not have a __format__ method that handles it. See :issue: `7994 ` for
2213
2214
background.
2214
2215
2215
- * :meth: `difflib.SequenceMatcher.isbjunk ` and
2216
- :meth: `difflib.SequenceMatcher.isbpopular ` were deprecated in 3.2, and have
2216
+ * :meth: `! difflib.SequenceMatcher.isbjunk ` and
2217
+ :meth: `! difflib.SequenceMatcher.isbpopular ` were deprecated in 3.2, and have
2217
2218
now been removed: use ``x in sm.bjunk `` and
2218
2219
``x in sm.bpopular ``, where *sm * is a :class: `~difflib.SequenceMatcher ` object
2219
2220
(:issue: `13248 `).
@@ -2280,7 +2281,7 @@ Changes in the Python API
2280
2281
* :meth: `!importlib.util.module_for_loader ` now sets ``__loader__ `` and
2281
2282
``__package__ `` unconditionally to properly support reloading. If this is not
2282
2283
desired then you will need to set these attributes manually. You can use
2283
- :func: `importlib.util.module_to_load ` for module management.
2284
+ :func: `! importlib.util.module_to_load ` for module management.
2284
2285
2285
2286
* Import now resets relevant attributes (e.g. ``__name__ ``, ``__loader__ ``,
2286
2287
``__package__ ``, ``__file__ ``, ``__cached__ ``) unconditionally when reloading.
@@ -2428,7 +2429,7 @@ Changes in the Python API
2428
2429
disallowed command forms didn't make any sense and are unlikely to be in use.
2429
2430
2430
2431
* The :func: `re.split `, :func: `re.findall `, and :func: `re.sub ` functions, and
2431
- the :meth: `~re.match .group ` and :meth: `~re.match .groups ` methods of
2432
+ the :meth: `~re.Match .group ` and :meth: `~re.Match .groups ` methods of
2432
2433
``match `` objects now always return a *bytes * object when the string
2433
2434
to be matched is a :term: `bytes-like object `. Previously the return type
2434
2435
matched the input type, so if your code was depending on the return value
0 commit comments