mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
[3.12] gh-101100: Fix Sphinx warnings from PEP 3108 stdlib re-organisation (GH-114327) (#114988)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Fix Sphinx warnings from PEP 3108 stdlib re-organisation (#114327)
This commit is contained in:
parent
cf2ecbc514
commit
d8a787258d
8 changed files with 91 additions and 91 deletions
|
@ -1039,12 +1039,12 @@ is an implementation of the Secure Socket Layer, which encrypts the data being
|
||||||
sent over a socket. When compiling Python, you can edit :file:`Modules/Setup`
|
sent over a socket. When compiling Python, you can edit :file:`Modules/Setup`
|
||||||
to include SSL support, which adds an additional function to the :mod:`socket`
|
to include SSL support, which adds an additional function to the :mod:`socket`
|
||||||
module: ``socket.ssl(socket, keyfile, certfile)``, which takes a socket
|
module: ``socket.ssl(socket, keyfile, certfile)``, which takes a socket
|
||||||
object and returns an SSL socket. The :mod:`httplib` and :mod:`urllib` modules
|
object and returns an SSL socket. The :mod:`httplib <http>` and :mod:`urllib` modules
|
||||||
were also changed to support ``https://`` URLs, though no one has implemented
|
were also changed to support ``https://`` URLs, though no one has implemented
|
||||||
FTP or SMTP over SSL.
|
FTP or SMTP over SSL.
|
||||||
|
|
||||||
The :mod:`httplib` module has been rewritten by Greg Stein to support HTTP/1.1.
|
The :mod:`httplib <http>` module has been rewritten by Greg Stein to support HTTP/1.1.
|
||||||
Backward compatibility with the 1.5 version of :mod:`httplib` is provided,
|
Backward compatibility with the 1.5 version of :mod:`!httplib` is provided,
|
||||||
though using HTTP/1.1 features such as pipelining will require rewriting code to
|
though using HTTP/1.1 features such as pipelining will require rewriting code to
|
||||||
use a different set of interfaces.
|
use a different set of interfaces.
|
||||||
|
|
||||||
|
@ -1108,7 +1108,7 @@ module.
|
||||||
* :mod:`pyexpat`: An interface to the Expat XML parser. (Contributed by Paul
|
* :mod:`pyexpat`: An interface to the Expat XML parser. (Contributed by Paul
|
||||||
Prescod.)
|
Prescod.)
|
||||||
|
|
||||||
* :mod:`robotparser`: Parse a :file:`robots.txt` file, which is used for writing
|
* :mod:`robotparser <urllib.robotparser>`: Parse a :file:`robots.txt` file, which is used for writing
|
||||||
web spiders that politely avoid certain areas of a web site. The parser accepts
|
web spiders that politely avoid certain areas of a web site. The parser accepts
|
||||||
the contents of a :file:`robots.txt` file, builds a set of rules from it, and
|
the contents of a :file:`robots.txt` file, builds a set of rules from it, and
|
||||||
can then answer questions about the fetchability of a given URL. (Contributed
|
can then answer questions about the fetchability of a given URL. (Contributed
|
||||||
|
@ -1129,10 +1129,10 @@ module.
|
||||||
:file:`Tools/idle/BrowserControl.py`, and adapted for the standard library by
|
:file:`Tools/idle/BrowserControl.py`, and adapted for the standard library by
|
||||||
Fred.)
|
Fred.)
|
||||||
|
|
||||||
* :mod:`_winreg`: An interface to the Windows registry. :mod:`_winreg` is an
|
* :mod:`_winreg <winreg>`: An interface to the Windows registry. :mod:`!_winreg` is an
|
||||||
adaptation of functions that have been part of PythonWin since 1995, but has now
|
adaptation of functions that have been part of PythonWin since 1995, but has now
|
||||||
been added to the core distribution, and enhanced to support Unicode.
|
been added to the core distribution, and enhanced to support Unicode.
|
||||||
:mod:`_winreg` was written by Bill Tutt and Mark Hammond.
|
:mod:`!_winreg` was written by Bill Tutt and Mark Hammond.
|
||||||
|
|
||||||
* :mod:`zipfile`: A module for reading and writing ZIP-format archives. These
|
* :mod:`zipfile`: A module for reading and writing ZIP-format archives. These
|
||||||
are archives produced by :program:`PKZIP` on DOS/Windows or :program:`zip` on
|
are archives produced by :program:`PKZIP` on DOS/Windows or :program:`zip` on
|
||||||
|
|
|
@ -55,7 +55,7 @@ implemented in C. In particular, it's not possible to subclass built-in types,
|
||||||
so you can't just subclass, say, lists in order to add a single useful method to
|
so you can't just subclass, say, lists in order to add a single useful method to
|
||||||
them. The :mod:`!UserList` module provides a class that supports all of the
|
them. The :mod:`!UserList` module provides a class that supports all of the
|
||||||
methods of lists and that can be subclassed further, but there's lots of C code
|
methods of lists and that can be subclassed further, but there's lots of C code
|
||||||
that expects a regular Python list and won't accept a :class:`!UserList`
|
that expects a regular Python list and won't accept a :class:`~collections.UserList`
|
||||||
instance.
|
instance.
|
||||||
|
|
||||||
Python 2.2 fixes this, and in the process adds some exciting new capabilities.
|
Python 2.2 fixes this, and in the process adds some exciting new capabilities.
|
||||||
|
@ -69,7 +69,7 @@ A brief summary:
|
||||||
|
|
||||||
* It's also possible to automatically call methods on accessing or setting an
|
* It's also possible to automatically call methods on accessing or setting an
|
||||||
instance attribute by using a new mechanism called :dfn:`properties`. Many uses
|
instance attribute by using a new mechanism called :dfn:`properties`. Many uses
|
||||||
of :meth:`!__getattr__` can be rewritten to use properties instead, making the
|
of :meth:`~object.__getattr__` can be rewritten to use properties instead, making the
|
||||||
resulting code simpler and faster. As a small side benefit, attributes can now
|
resulting code simpler and faster. As a small side benefit, attributes can now
|
||||||
have docstrings, too.
|
have docstrings, too.
|
||||||
|
|
||||||
|
@ -933,7 +933,7 @@ anyway).
|
||||||
New and Improved Modules
|
New and Improved Modules
|
||||||
========================
|
========================
|
||||||
|
|
||||||
* The :mod:`!xmlrpclib` module was contributed to the standard library by Fredrik
|
* The :mod:`xmlrpclib <xmlrpc.client>` module was contributed to the standard library by Fredrik
|
||||||
Lundh, providing support for writing XML-RPC clients. XML-RPC is a simple
|
Lundh, providing support for writing XML-RPC clients. XML-RPC is a simple
|
||||||
remote procedure call protocol built on top of HTTP and XML. For example, the
|
remote procedure call protocol built on top of HTTP and XML. For example, the
|
||||||
following snippet retrieves a list of RSS channels from the O'Reilly Network,
|
following snippet retrieves a list of RSS channels from the O'Reilly Network,
|
||||||
|
@ -956,7 +956,7 @@ New and Improved Modules
|
||||||
# 'description': 'A utility which converts HTML to XSL FO.',
|
# 'description': 'A utility which converts HTML to XSL FO.',
|
||||||
# 'title': 'html2fo 0.3 (Default)'}, ... ]
|
# 'title': 'html2fo 0.3 (Default)'}, ... ]
|
||||||
|
|
||||||
The :mod:`!SimpleXMLRPCServer` module makes it easy to create straightforward
|
The :mod:`SimpleXMLRPCServer <xmlrpc.server>` module makes it easy to create straightforward
|
||||||
XML-RPC servers. See http://xmlrpc.scripting.com/ for more information about XML-RPC.
|
XML-RPC servers. See http://xmlrpc.scripting.com/ for more information about XML-RPC.
|
||||||
|
|
||||||
* The new :mod:`hmac` module implements the HMAC algorithm described by
|
* The new :mod:`hmac` module implements the HMAC algorithm described by
|
||||||
|
@ -964,7 +964,7 @@ New and Improved Modules
|
||||||
|
|
||||||
* Several functions that originally returned lengthy tuples now return
|
* Several functions that originally returned lengthy tuples now return
|
||||||
pseudo-sequences that still behave like tuples but also have mnemonic attributes such
|
pseudo-sequences that still behave like tuples but also have mnemonic attributes such
|
||||||
as :attr:`!memberst_mtime` or :attr:`!tm_year`. The enhanced functions include
|
as :attr:`!memberst_mtime` or :attr:`~time.struct_time.tm_year`. The enhanced functions include
|
||||||
:func:`~os.stat`, :func:`~os.fstat`, :func:`~os.statvfs`, and :func:`~os.fstatvfs` in the
|
:func:`~os.stat`, :func:`~os.fstat`, :func:`~os.statvfs`, and :func:`~os.fstatvfs` in the
|
||||||
:mod:`os` module, and :func:`~time.localtime`, :func:`~time.gmtime`, and :func:`~time.strptime` in
|
:mod:`os` module, and :func:`~time.localtime`, :func:`~time.gmtime`, and :func:`~time.strptime` in
|
||||||
the :mod:`time` module.
|
the :mod:`time` module.
|
||||||
|
|
|
@ -1081,7 +1081,7 @@ complete list of changes, or look through the CVS logs for all the details.
|
||||||
:func:`nsmallest` that use heaps to find the N largest or smallest values in a
|
:func:`nsmallest` that use heaps to find the N largest or smallest values in a
|
||||||
dataset without the expense of a full sort. (Contributed by Raymond Hettinger.)
|
dataset without the expense of a full sort. (Contributed by Raymond Hettinger.)
|
||||||
|
|
||||||
* The :mod:`httplib` module now contains constants for HTTP status codes defined
|
* The :mod:`httplib <http>` module now contains constants for HTTP status codes defined
|
||||||
in various HTTP-related RFC documents. Constants have names such as
|
in various HTTP-related RFC documents. Constants have names such as
|
||||||
:const:`OK`, :const:`CREATED`, :const:`CONTINUE`, and
|
:const:`OK`, :const:`CREATED`, :const:`CONTINUE`, and
|
||||||
:const:`MOVED_PERMANENTLY`; use pydoc to get a full list. (Contributed by
|
:const:`MOVED_PERMANENTLY`; use pydoc to get a full list. (Contributed by
|
||||||
|
@ -1218,10 +1218,10 @@ complete list of changes, or look through the CVS logs for all the details.
|
||||||
now include the string ``'%default'``, which will be replaced by the option's
|
now include the string ``'%default'``, which will be replaced by the option's
|
||||||
default value. (Contributed by Greg Ward.)
|
default value. (Contributed by Greg Ward.)
|
||||||
|
|
||||||
* The long-term plan is to deprecate the :mod:`rfc822` module in some future
|
* The long-term plan is to deprecate the :mod:`!rfc822` module in some future
|
||||||
Python release in favor of the :mod:`email` package. To this end, the
|
Python release in favor of the :mod:`email` package. To this end, the
|
||||||
:func:`email.Utils.formatdate` function has been changed to make it usable as a
|
:func:`email.Utils.formatdate <email.utils.formatdate>` function has been changed to make it usable as a
|
||||||
replacement for :func:`rfc822.formatdate`. You may want to write new e-mail
|
replacement for :func:`!rfc822.formatdate`. You may want to write new e-mail
|
||||||
processing code with this in mind. (Change implemented by Anthony Baxter.)
|
processing code with this in mind. (Change implemented by Anthony Baxter.)
|
||||||
|
|
||||||
* A new ``urandom(n)`` function was added to the :mod:`os` module, returning
|
* A new ``urandom(n)`` function was added to the :mod:`os` module, returning
|
||||||
|
@ -1308,7 +1308,7 @@ complete list of changes, or look through the CVS logs for all the details.
|
||||||
sockets, and regular expression pattern objects. (Contributed by Raymond
|
sockets, and regular expression pattern objects. (Contributed by Raymond
|
||||||
Hettinger.)
|
Hettinger.)
|
||||||
|
|
||||||
* The :mod:`xmlrpclib` module now supports a multi-call extension for
|
* The :mod:`xmlrpclib <xmlrpc.client>` module now supports a multi-call extension for
|
||||||
transmitting multiple XML-RPC calls in a single HTTP operation. (Contributed by
|
transmitting multiple XML-RPC calls in a single HTTP operation. (Contributed by
|
||||||
Brian Quinlan.)
|
Brian Quinlan.)
|
||||||
|
|
||||||
|
@ -1323,8 +1323,8 @@ complete list of changes, or look through the CVS logs for all the details.
|
||||||
cookielib
|
cookielib
|
||||||
---------
|
---------
|
||||||
|
|
||||||
The :mod:`cookielib` library supports client-side handling for HTTP cookies,
|
The :mod:`cookielib <http.cookiejar>` library supports client-side handling for HTTP cookies,
|
||||||
mirroring the :mod:`Cookie` module's server-side cookie support. Cookies are
|
mirroring the :mod:`Cookie <http.cookies>` module's server-side cookie support. Cookies are
|
||||||
stored in cookie jars; the library transparently stores cookies offered by the
|
stored in cookie jars; the library transparently stores cookies offered by the
|
||||||
web server in the cookie jar, and fetches the cookie from the jar when
|
web server in the cookie jar, and fetches the cookie from the jar when
|
||||||
connecting to the server. As in web browsers, policy objects control whether
|
connecting to the server. As in web browsers, policy objects control whether
|
||||||
|
@ -1335,7 +1335,7 @@ are provided: one that stores cookies in the Netscape format so applications can
|
||||||
use the Mozilla or Lynx cookie files, and one that stores cookies in the same
|
use the Mozilla or Lynx cookie files, and one that stores cookies in the same
|
||||||
format as the Perl libwww library.
|
format as the Perl libwww library.
|
||||||
|
|
||||||
:mod:`urllib2` has been changed to interact with :mod:`cookielib`:
|
:mod:`urllib2 <urllib.request>` has been changed to interact with :mod:`cookielib <http.cookiejar>`:
|
||||||
:class:`HTTPCookieProcessor` manages a cookie jar that is used when accessing
|
:class:`HTTPCookieProcessor` manages a cookie jar that is used when accessing
|
||||||
URLs.
|
URLs.
|
||||||
|
|
||||||
|
|
|
@ -1478,8 +1478,8 @@ complete list of changes, or look through the SVN logs for all the details.
|
||||||
|
|
||||||
.. Patch 790710
|
.. Patch 790710
|
||||||
|
|
||||||
* The :mod:`pickle` and :mod:`cPickle` modules no longer accept a return value
|
* The :mod:`pickle` and :mod:`!cPickle` modules no longer accept a return value
|
||||||
of ``None`` from the :meth:`__reduce__` method; the method must return a tuple
|
of ``None`` from the :meth:`~object.__reduce__` method; the method must return a tuple
|
||||||
of arguments instead. The ability to return ``None`` was deprecated in Python
|
of arguments instead. The ability to return ``None`` was deprecated in Python
|
||||||
2.4, so this completes the removal of the feature.
|
2.4, so this completes the removal of the feature.
|
||||||
|
|
||||||
|
@ -1519,7 +1519,7 @@ complete list of changes, or look through the SVN logs for all the details.
|
||||||
|
|
||||||
.. Patch #1472854
|
.. Patch #1472854
|
||||||
|
|
||||||
* The :mod:`SimpleXMLRPCServer` and :mod:`DocXMLRPCServer` classes now have a
|
* The :mod:`SimpleXMLRPCServer <xmlrpc.server>` and :mod:`DocXMLRPCServer <xmlrpc.server>` classes now have a
|
||||||
:attr:`rpc_paths` attribute that constrains XML-RPC operations to a limited set
|
:attr:`rpc_paths` attribute that constrains XML-RPC operations to a limited set
|
||||||
of URL paths; the default is to allow only ``'/'`` and ``'/RPC2'``. Setting
|
of URL paths; the default is to allow only ``'/'`` and ``'/RPC2'``. Setting
|
||||||
:attr:`rpc_paths` to ``None`` or an empty tuple disables this path checking.
|
:attr:`rpc_paths` to ``None`` or an empty tuple disables this path checking.
|
||||||
|
@ -1650,9 +1650,9 @@ complete list of changes, or look through the SVN logs for all the details.
|
||||||
|
|
||||||
.. Patch #754022
|
.. Patch #754022
|
||||||
|
|
||||||
* The :mod:`xmlrpclib` module now supports returning :class:`~datetime.datetime` objects
|
* The :mod:`xmlrpclib <xmlrpc.client>` module now supports returning :class:`~datetime.datetime` objects
|
||||||
for the XML-RPC date type. Supply ``use_datetime=True`` to the :func:`loads`
|
for the XML-RPC date type. Supply ``use_datetime=True`` to the :func:`~xmlrpc.client.loads`
|
||||||
function or the :class:`Unmarshaller` class to enable this feature. (Contributed
|
function or the :class:`!Unmarshaller` class to enable this feature. (Contributed
|
||||||
by Skip Montanaro.)
|
by Skip Montanaro.)
|
||||||
|
|
||||||
.. Patch 1120353
|
.. Patch 1120353
|
||||||
|
@ -2253,12 +2253,12 @@ code:
|
||||||
appeared. In Python 2.5, the argument must be exactly one %char specifier with
|
appeared. In Python 2.5, the argument must be exactly one %char specifier with
|
||||||
no surrounding text.
|
no surrounding text.
|
||||||
|
|
||||||
* Library: The :mod:`pickle` and :mod:`cPickle` modules no longer accept a
|
* Library: The :mod:`pickle` and :mod:`!cPickle` modules no longer accept a
|
||||||
return value of ``None`` from the :meth:`__reduce__` method; the method must
|
return value of ``None`` from the :meth:`~object.__reduce__` method; the method must
|
||||||
return a tuple of arguments instead. The modules also no longer accept the
|
return a tuple of arguments instead. The modules also no longer accept the
|
||||||
deprecated *bin* keyword parameter.
|
deprecated *bin* keyword parameter.
|
||||||
|
|
||||||
* Library: The :mod:`SimpleXMLRPCServer` and :mod:`DocXMLRPCServer` classes now
|
* Library: The :mod:`SimpleXMLRPCServer <xmlrpc.server>` and :mod:`DocXMLRPCServer <xmlrpc.server>` classes now
|
||||||
have a :attr:`rpc_paths` attribute that constrains XML-RPC operations to a
|
have a :attr:`rpc_paths` attribute that constrains XML-RPC operations to a
|
||||||
limited set of URL paths; the default is to allow only ``'/'`` and ``'/RPC2'``.
|
limited set of URL paths; the default is to allow only ``'/'`` and ``'/RPC2'``.
|
||||||
Setting :attr:`rpc_paths` to ``None`` or an empty tuple disables this path
|
Setting :attr:`rpc_paths` to ``None`` or an empty tuple disables this path
|
||||||
|
|
|
@ -1082,7 +1082,7 @@ the :mod:`io` module:
|
||||||
|
|
||||||
(In Python 2.6, :class:`io.StringIO` is implemented in
|
(In Python 2.6, :class:`io.StringIO` is implemented in
|
||||||
pure Python, so it's pretty slow. You should therefore stick with the
|
pure Python, so it's pretty slow. You should therefore stick with the
|
||||||
existing :mod:`StringIO` module or :mod:`cStringIO` for now. At some
|
existing :mod:`!StringIO` module or :mod:`!cStringIO` for now. At some
|
||||||
point Python 3.0's :mod:`io` module will be rewritten into C for speed,
|
point Python 3.0's :mod:`io` module will be rewritten into C for speed,
|
||||||
and perhaps the C implementation will be backported to the 2.x releases.)
|
and perhaps the C implementation will be backported to the 2.x releases.)
|
||||||
|
|
||||||
|
@ -1807,8 +1807,8 @@ changes, or look through the Subversion logs for all the details.
|
||||||
Nubis; :issue:`1817`.)
|
Nubis; :issue:`1817`.)
|
||||||
|
|
||||||
The :func:`parse_qs` and :func:`parse_qsl` functions have been
|
The :func:`parse_qs` and :func:`parse_qsl` functions have been
|
||||||
relocated from the :mod:`cgi` module to the :mod:`urlparse` module.
|
relocated from the :mod:`cgi` module to the :mod:`urlparse <urllib.parse>` module.
|
||||||
The versions still available in the :mod:`cgi` module will
|
The versions still available in the :mod:`!cgi` module will
|
||||||
trigger :exc:`PendingDeprecationWarning` messages in 2.6
|
trigger :exc:`PendingDeprecationWarning` messages in 2.6
|
||||||
(:issue:`600362`).
|
(:issue:`600362`).
|
||||||
|
|
||||||
|
@ -1895,8 +1895,8 @@ changes, or look through the Subversion logs for all the details.
|
||||||
|
|
||||||
(Contributed by Raymond Hettinger.)
|
(Contributed by Raymond Hettinger.)
|
||||||
|
|
||||||
* The :mod:`Cookie` module's :class:`Morsel` objects now support an
|
* The :mod:`Cookie <http.cookies>` module's :class:`~http.cookies.Morsel` objects now support an
|
||||||
:attr:`httponly` attribute. In some browsers. cookies with this attribute
|
:attr:`~http.cookies.Morsel.httponly` attribute. In some browsers. cookies with this attribute
|
||||||
set cannot be accessed or manipulated by JavaScript code.
|
set cannot be accessed or manipulated by JavaScript code.
|
||||||
(Contributed by Arvin Schnell; :issue:`1638033`.)
|
(Contributed by Arvin Schnell; :issue:`1638033`.)
|
||||||
|
|
||||||
|
@ -1987,8 +1987,8 @@ changes, or look through the Subversion logs for all the details.
|
||||||
(Contributed by Raymond Hettinger.)
|
(Contributed by Raymond Hettinger.)
|
||||||
|
|
||||||
* An optional ``timeout`` parameter, specifying a timeout measured in
|
* An optional ``timeout`` parameter, specifying a timeout measured in
|
||||||
seconds, was added to the :class:`httplib.HTTPConnection` and
|
seconds, was added to the :class:`httplib.HTTPConnection <http.client.HTTPConnection>` and
|
||||||
:class:`HTTPSConnection` class constructors. (Added by Facundo
|
:class:`HTTPSConnection <http.client.HTTPSConnection>` class constructors. (Added by Facundo
|
||||||
Batista.)
|
Batista.)
|
||||||
|
|
||||||
* Most of the :mod:`inspect` module's functions, such as
|
* Most of the :mod:`inspect` module's functions, such as
|
||||||
|
@ -2371,10 +2371,10 @@ changes, or look through the Subversion logs for all the details.
|
||||||
``socket(socket.AF_INET, ...)`` may be all that's required to make
|
``socket(socket.AF_INET, ...)`` may be all that's required to make
|
||||||
your code work with IPv6.
|
your code work with IPv6.
|
||||||
|
|
||||||
* The base classes in the :mod:`SocketServer` module now support
|
* The base classes in the :mod:`SocketServer <socketserver>` module now support
|
||||||
calling a :meth:`handle_timeout` method after a span of inactivity
|
calling a :meth:`~socketserver.BaseServer.handle_timeout` method after a span of inactivity
|
||||||
specified by the server's :attr:`timeout` attribute. (Contributed
|
specified by the server's :attr:`~socketserver.BaseServer.timeout` attribute. (Contributed
|
||||||
by Michael Pomraning.) The :meth:`serve_forever` method
|
by Michael Pomraning.) The :meth:`~socketserver.BaseServer.serve_forever` method
|
||||||
now takes an optional poll interval measured in seconds,
|
now takes an optional poll interval measured in seconds,
|
||||||
controlling how often the server will check for a shutdown request.
|
controlling how often the server will check for a shutdown request.
|
||||||
(Contributed by Pedro Werneck and Jeffrey Yasskin;
|
(Contributed by Pedro Werneck and Jeffrey Yasskin;
|
||||||
|
@ -2478,9 +2478,9 @@ changes, or look through the Subversion logs for all the details.
|
||||||
``with tempfile.NamedTemporaryFile() as tmp: ...``.
|
``with tempfile.NamedTemporaryFile() as tmp: ...``.
|
||||||
(Contributed by Alexander Belopolsky; :issue:`2021`.)
|
(Contributed by Alexander Belopolsky; :issue:`2021`.)
|
||||||
|
|
||||||
* The :mod:`test.test_support` module gained a number
|
* The :mod:`test.test_support <test.support>` module gained a number
|
||||||
of context managers useful for writing tests.
|
of context managers useful for writing tests.
|
||||||
:func:`EnvironmentVarGuard` is a
|
:func:`~test.support.os_helper.EnvironmentVarGuard` is a
|
||||||
context manager that temporarily changes environment variables and
|
context manager that temporarily changes environment variables and
|
||||||
automatically restores them to their old values.
|
automatically restores them to their old values.
|
||||||
|
|
||||||
|
@ -2577,9 +2577,9 @@ changes, or look through the Subversion logs for all the details.
|
||||||
(:issue:`1513695`)
|
(:issue:`1513695`)
|
||||||
|
|
||||||
* An optional ``timeout`` parameter was added to the
|
* An optional ``timeout`` parameter was added to the
|
||||||
:func:`urllib.urlopen` function and the
|
:func:`urllib.urlopen <urllib.request.urlopen>` function and the
|
||||||
:class:`urllib.ftpwrapper` class constructor, as well as the
|
:class:`urllib.ftpwrapper` class constructor, as well as the
|
||||||
:func:`urllib2.urlopen` function. The parameter specifies a timeout
|
:func:`urllib2.urlopen <urllib.request.urlopen>` function. The parameter specifies a timeout
|
||||||
measured in seconds. For example::
|
measured in seconds. For example::
|
||||||
|
|
||||||
>>> u = urllib2.urlopen("http://slow.example.com",
|
>>> u = urllib2.urlopen("http://slow.example.com",
|
||||||
|
@ -2604,7 +2604,7 @@ changes, or look through the Subversion logs for all the details.
|
||||||
intended for testing purposes that lets you temporarily modify the
|
intended for testing purposes that lets you temporarily modify the
|
||||||
warning filters and then restore their original values (:issue:`3781`).
|
warning filters and then restore their original values (:issue:`3781`).
|
||||||
|
|
||||||
* The XML-RPC :class:`SimpleXMLRPCServer` and :class:`DocXMLRPCServer`
|
* The XML-RPC :class:`SimpleXMLRPCServer <xmlrpc.server>` and :class:`DocXMLRPCServer <xmlrpc.server>`
|
||||||
classes can now be prevented from immediately opening and binding to
|
classes can now be prevented from immediately opening and binding to
|
||||||
their socket by passing ``False`` as the *bind_and_activate*
|
their socket by passing ``False`` as the *bind_and_activate*
|
||||||
constructor parameter. This can be used to modify the instance's
|
constructor parameter. This can be used to modify the instance's
|
||||||
|
@ -2621,11 +2621,11 @@ changes, or look through the Subversion logs for all the details.
|
||||||
information. (Contributed by Alan McIntyre as part of his
|
information. (Contributed by Alan McIntyre as part of his
|
||||||
project for Google's Summer of Code 2007.)
|
project for Google's Summer of Code 2007.)
|
||||||
|
|
||||||
* The :mod:`xmlrpclib` module no longer automatically converts
|
* The :mod:`xmlrpclib <xmlrpc.client>` module no longer automatically converts
|
||||||
:class:`datetime.date` and :class:`datetime.time` to the
|
:class:`datetime.date` and :class:`datetime.time` to the
|
||||||
:class:`xmlrpclib.DateTime` type; the conversion semantics were
|
:class:`xmlrpclib.DateTime <xmlrpc.client.DateTime>` type; the conversion semantics were
|
||||||
not necessarily correct for all applications. Code using
|
not necessarily correct for all applications. Code using
|
||||||
:mod:`xmlrpclib` should convert :class:`date` and :class:`~datetime.time`
|
:mod:`!xmlrpclib` should convert :class:`date` and :class:`~datetime.time`
|
||||||
instances. (:issue:`1330538`) The code can also handle
|
instances. (:issue:`1330538`) The code can also handle
|
||||||
dates before 1900 (contributed by Ralf Schmitt; :issue:`2014`)
|
dates before 1900 (contributed by Ralf Schmitt; :issue:`2014`)
|
||||||
and 64-bit integers represented by using ``<i8>`` in XML-RPC responses
|
and 64-bit integers represented by using ``<i8>`` in XML-RPC responses
|
||||||
|
@ -3274,11 +3274,11 @@ that may require changes to your code:
|
||||||
:exc:`StandardError` but now it is, through :exc:`IOError`.
|
:exc:`StandardError` but now it is, through :exc:`IOError`.
|
||||||
(Implemented by Gregory P. Smith; :issue:`1706815`.)
|
(Implemented by Gregory P. Smith; :issue:`1706815`.)
|
||||||
|
|
||||||
* The :mod:`xmlrpclib` module no longer automatically converts
|
* The :mod:`xmlrpclib <xmlrpc.client>` module no longer automatically converts
|
||||||
:class:`datetime.date` and :class:`datetime.time` to the
|
:class:`datetime.date` and :class:`datetime.time` to the
|
||||||
:class:`xmlrpclib.DateTime` type; the conversion semantics were
|
:class:`xmlrpclib.DateTime <xmlrpc.client.DateTime>` type; the conversion semantics were
|
||||||
not necessarily correct for all applications. Code using
|
not necessarily correct for all applications. Code using
|
||||||
:mod:`xmlrpclib` should convert :class:`date` and :class:`~datetime.time`
|
:mod:`!xmlrpclib` should convert :class:`date` and :class:`~datetime.time`
|
||||||
instances. (:issue:`1330538`)
|
instances. (:issue:`1330538`)
|
||||||
|
|
||||||
* (3.0-warning mode) The :class:`Exception` class now warns
|
* (3.0-warning mode) The :class:`Exception` class now warns
|
||||||
|
|
|
@ -915,7 +915,7 @@ used with the :option:`-W` switch, separated by commas.
|
||||||
(Contributed by Brian Curtin; :issue:`7301`.)
|
(Contributed by Brian Curtin; :issue:`7301`.)
|
||||||
|
|
||||||
For example, the following setting will print warnings every time
|
For example, the following setting will print warnings every time
|
||||||
they occur, but turn warnings from the :mod:`Cookie` module into an
|
they occur, but turn warnings from the :mod:`Cookie <http.cookies>` module into an
|
||||||
error. (The exact syntax for setting an environment variable varies
|
error. (The exact syntax for setting an environment variable varies
|
||||||
across operating systems and shells.)
|
across operating systems and shells.)
|
||||||
|
|
||||||
|
@ -1012,12 +1012,12 @@ Several performance enhancements have been added:
|
||||||
scan. This is sometimes faster by a factor of 10. (Added by
|
scan. This is sometimes faster by a factor of 10. (Added by
|
||||||
Florent Xicluna; :issue:`7462` and :issue:`7622`.)
|
Florent Xicluna; :issue:`7462` and :issue:`7622`.)
|
||||||
|
|
||||||
* The :mod:`pickle` and :mod:`cPickle` modules now automatically
|
* The :mod:`pickle` and :mod:`!cPickle` modules now automatically
|
||||||
intern the strings used for attribute names, reducing memory usage
|
intern the strings used for attribute names, reducing memory usage
|
||||||
of the objects resulting from unpickling. (Contributed by Jake
|
of the objects resulting from unpickling. (Contributed by Jake
|
||||||
McGuire; :issue:`5084`.)
|
McGuire; :issue:`5084`.)
|
||||||
|
|
||||||
* The :mod:`cPickle` module now special-cases dictionaries,
|
* The :mod:`!cPickle` module now special-cases dictionaries,
|
||||||
nearly halving the time required to pickle them.
|
nearly halving the time required to pickle them.
|
||||||
(Contributed by Collin Winter; :issue:`5670`.)
|
(Contributed by Collin Winter; :issue:`5670`.)
|
||||||
|
|
||||||
|
@ -1163,7 +1163,7 @@ changes, or look through the Subversion logs for all the details.
|
||||||
statement, has been deprecated, because the :keyword:`!with` statement
|
statement, has been deprecated, because the :keyword:`!with` statement
|
||||||
now supports multiple context managers.
|
now supports multiple context managers.
|
||||||
|
|
||||||
* The :mod:`cookielib` module now ignores cookies that have an invalid
|
* The :mod:`cookielib <http.cookiejar>` module now ignores cookies that have an invalid
|
||||||
version field, one that doesn't contain an integer value. (Fixed by
|
version field, one that doesn't contain an integer value. (Fixed by
|
||||||
John J. Lee; :issue:`3924`.)
|
John J. Lee; :issue:`3924`.)
|
||||||
|
|
||||||
|
@ -1306,11 +1306,11 @@ changes, or look through the Subversion logs for all the details.
|
||||||
``('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512')``.
|
``('md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512')``.
|
||||||
(Contributed by Carl Chenet; :issue:`7418`.)
|
(Contributed by Carl Chenet; :issue:`7418`.)
|
||||||
|
|
||||||
* The default :class:`~httplib.HTTPResponse` class used by the :mod:`httplib` module now
|
* The default :class:`~http.client.HTTPResponse` class used by the :mod:`httplib <http>` module now
|
||||||
supports buffering, resulting in much faster reading of HTTP responses.
|
supports buffering, resulting in much faster reading of HTTP responses.
|
||||||
(Contributed by Kristján Valur Jónsson; :issue:`4879`.)
|
(Contributed by Kristján Valur Jónsson; :issue:`4879`.)
|
||||||
|
|
||||||
The :class:`~httplib.HTTPConnection` and :class:`~httplib.HTTPSConnection` classes
|
The :class:`~http.client.HTTPConnection` and :class:`~http.client.HTTPSConnection` classes
|
||||||
now support a *source_address* parameter, a ``(host, port)`` 2-tuple
|
now support a *source_address* parameter, a ``(host, port)`` 2-tuple
|
||||||
giving the source address that will be used for the connection.
|
giving the source address that will be used for the connection.
|
||||||
(Contributed by Eldon Ziegler; :issue:`3972`.)
|
(Contributed by Eldon Ziegler; :issue:`3972`.)
|
||||||
|
@ -1518,16 +1518,16 @@ changes, or look through the Subversion logs for all the details.
|
||||||
the :class:`bytearray` and :class:`memoryview` objects. (Implemented by
|
the :class:`bytearray` and :class:`memoryview` objects. (Implemented by
|
||||||
Antoine Pitrou; :issue:`8104`.)
|
Antoine Pitrou; :issue:`8104`.)
|
||||||
|
|
||||||
* The :mod:`SocketServer` module's :class:`~SocketServer.TCPServer` class now
|
* The :mod:`SocketServer <socketserver>` module's :class:`~socketserver.TCPServer` class now
|
||||||
supports socket timeouts and disabling the Nagle algorithm.
|
supports socket timeouts and disabling the Nagle algorithm.
|
||||||
The :attr:`~SocketServer.TCPServer.disable_nagle_algorithm` class attribute
|
The :attr:`!disable_nagle_algorithm` class attribute
|
||||||
defaults to ``False``; if overridden to be true,
|
defaults to ``False``; if overridden to be true,
|
||||||
new request connections will have the TCP_NODELAY option set to
|
new request connections will have the TCP_NODELAY option set to
|
||||||
prevent buffering many small sends into a single TCP packet.
|
prevent buffering many small sends into a single TCP packet.
|
||||||
The :attr:`~SocketServer.BaseServer.timeout` class attribute can hold
|
The :attr:`~socketserver.BaseServer.timeout` class attribute can hold
|
||||||
a timeout in seconds that will be applied to the request socket; if
|
a timeout in seconds that will be applied to the request socket; if
|
||||||
no request is received within that time, :meth:`~SocketServer.BaseServer.handle_timeout`
|
no request is received within that time, :meth:`~socketserver.BaseServer.handle_timeout`
|
||||||
will be called and :meth:`~SocketServer.BaseServer.handle_request` will return.
|
will be called and :meth:`~socketserver.BaseServer.handle_request` will return.
|
||||||
(Contributed by Kristján Valur Jónsson; :issue:`6192` and :issue:`6267`.)
|
(Contributed by Kristján Valur Jónsson; :issue:`6192` and :issue:`6267`.)
|
||||||
|
|
||||||
* Updated module: the :mod:`sqlite3` module has been updated to
|
* Updated module: the :mod:`sqlite3` module has been updated to
|
||||||
|
@ -1648,7 +1648,7 @@ changes, or look through the Subversion logs for all the details.
|
||||||
and has been updated to version 5.2.0 (updated by
|
and has been updated to version 5.2.0 (updated by
|
||||||
Florent Xicluna; :issue:`8024`).
|
Florent Xicluna; :issue:`8024`).
|
||||||
|
|
||||||
* The :mod:`urlparse` module's :func:`~urlparse.urlsplit` now handles
|
* The :mod:`urlparse <urllib.parse>` module's :func:`~urllib.parse.urlsplit` now handles
|
||||||
unknown URL schemes in a fashion compliant with :rfc:`3986`: if the
|
unknown URL schemes in a fashion compliant with :rfc:`3986`: if the
|
||||||
URL is of the form ``"<something>://..."``, the text before the
|
URL is of the form ``"<something>://..."``, the text before the
|
||||||
``://`` is treated as the scheme, even if it's a made-up scheme that
|
``://`` is treated as the scheme, even if it's a made-up scheme that
|
||||||
|
@ -1675,7 +1675,7 @@ changes, or look through the Subversion logs for all the details.
|
||||||
(Python 2.7 actually produces slightly different output, since it
|
(Python 2.7 actually produces slightly different output, since it
|
||||||
returns a named tuple instead of a standard tuple.)
|
returns a named tuple instead of a standard tuple.)
|
||||||
|
|
||||||
The :mod:`urlparse` module also supports IPv6 literal addresses as defined by
|
The :mod:`urlparse <urllib.parse>` module also supports IPv6 literal addresses as defined by
|
||||||
:rfc:`2732` (contributed by Senthil Kumaran; :issue:`2987`).
|
:rfc:`2732` (contributed by Senthil Kumaran; :issue:`2987`).
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
|
@ -1697,8 +1697,8 @@ changes, or look through the Subversion logs for all the details.
|
||||||
or comment (which looks like ``<!-- comment -->``).
|
or comment (which looks like ``<!-- comment -->``).
|
||||||
(Patch by Neil Muller; :issue:`2746`.)
|
(Patch by Neil Muller; :issue:`2746`.)
|
||||||
|
|
||||||
* The XML-RPC client and server, provided by the :mod:`xmlrpclib` and
|
* The XML-RPC client and server, provided by the :mod:`xmlrpclib <xmlrpc.client>` and
|
||||||
:mod:`SimpleXMLRPCServer` modules, have improved performance by
|
:mod:`SimpleXMLRPCServer <xmlrpc.server>` modules, have improved performance by
|
||||||
supporting HTTP/1.1 keep-alive and by optionally using gzip encoding
|
supporting HTTP/1.1 keep-alive and by optionally using gzip encoding
|
||||||
to compress the XML being exchanged. The gzip compression is
|
to compress the XML being exchanged. The gzip compression is
|
||||||
controlled by the :attr:`encode_threshold` attribute of
|
controlled by the :attr:`encode_threshold` attribute of
|
||||||
|
@ -2334,11 +2334,11 @@ Port-Specific Changes: Windows
|
||||||
and :data:`LIBRARIES_ASSEMBLY_NAME_PREFIX`.
|
and :data:`LIBRARIES_ASSEMBLY_NAME_PREFIX`.
|
||||||
(Contributed by David Cournapeau; :issue:`4365`.)
|
(Contributed by David Cournapeau; :issue:`4365`.)
|
||||||
|
|
||||||
* The :mod:`_winreg` module for accessing the registry now implements
|
* The :mod:`_winreg <winreg>` module for accessing the registry now implements
|
||||||
the :func:`~_winreg.CreateKeyEx` and :func:`~_winreg.DeleteKeyEx`
|
the :func:`~winreg.CreateKeyEx` and :func:`~winreg.DeleteKeyEx`
|
||||||
functions, extended versions of previously supported functions that
|
functions, extended versions of previously supported functions that
|
||||||
take several extra arguments. The :func:`~_winreg.DisableReflectionKey`,
|
take several extra arguments. The :func:`~winreg.DisableReflectionKey`,
|
||||||
:func:`~_winreg.EnableReflectionKey`, and :func:`~_winreg.QueryReflectionKey`
|
:func:`~winreg.EnableReflectionKey`, and :func:`~winreg.QueryReflectionKey`
|
||||||
were also tested and documented.
|
were also tested and documented.
|
||||||
(Implemented by Brian Curtin: :issue:`7347`.)
|
(Implemented by Brian Curtin: :issue:`7347`.)
|
||||||
|
|
||||||
|
@ -2508,7 +2508,7 @@ In the standard library:
|
||||||
which raises an exception if there's an error.
|
which raises an exception if there's an error.
|
||||||
(Changed by Lars Gustäbel; :issue:`7357`.)
|
(Changed by Lars Gustäbel; :issue:`7357`.)
|
||||||
|
|
||||||
* The :mod:`urlparse` module's :func:`~urlparse.urlsplit` now handles
|
* The :mod:`urlparse <urllib.parse>` module's :func:`~urllib.parse.urlsplit` now handles
|
||||||
unknown URL schemes in a fashion compliant with :rfc:`3986`: if the
|
unknown URL schemes in a fashion compliant with :rfc:`3986`: if the
|
||||||
URL is of the form ``"<something>://..."``, the text before the
|
URL is of the form ``"<something>://..."``, the text before the
|
||||||
``://`` is treated as the scheme, even if it's a made-up scheme that
|
``://`` is treated as the scheme, even if it's a made-up scheme that
|
||||||
|
@ -2711,8 +2711,8 @@ and :ref:`setuptools-index`.
|
||||||
PEP 476: Enabling certificate verification by default for stdlib http clients
|
PEP 476: Enabling certificate verification by default for stdlib http clients
|
||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
:pep:`476` updated :mod:`httplib` and modules which use it, such as
|
:pep:`476` updated :mod:`httplib <http>` and modules which use it, such as
|
||||||
:mod:`urllib2` and :mod:`xmlrpclib`, to now verify that the server
|
:mod:`urllib2 <urllib.request>` and :mod:`xmlrpclib`, to now verify that the server
|
||||||
presents a certificate which is signed by a Certificate Authority in the
|
presents a certificate which is signed by a Certificate Authority in the
|
||||||
platform trust store and whose hostname matches the hostname being requested
|
platform trust store and whose hostname matches the hostname being requested
|
||||||
by default, significantly improving security for many applications. This
|
by default, significantly improving security for many applications. This
|
||||||
|
|
|
@ -337,7 +337,7 @@ changed.
|
||||||
(However, the standard library remains ASCII-only with the exception
|
(However, the standard library remains ASCII-only with the exception
|
||||||
of contributor names in comments.)
|
of contributor names in comments.)
|
||||||
|
|
||||||
* The :mod:`StringIO` and :mod:`cStringIO` modules are gone. Instead,
|
* The :mod:`!StringIO` and :mod:`!cStringIO` modules are gone. Instead,
|
||||||
import the :mod:`io` module and use :class:`io.StringIO` or
|
import the :mod:`io` module and use :class:`io.StringIO` or
|
||||||
:class:`io.BytesIO` for text and data respectively.
|
:class:`io.BytesIO` for text and data respectively.
|
||||||
|
|
||||||
|
@ -563,7 +563,7 @@ review:
|
||||||
removal in Python 3.0 due to lack of use or because a better
|
removal in Python 3.0 due to lack of use or because a better
|
||||||
replacement exists. See :pep:`3108` for an exhaustive list.
|
replacement exists. See :pep:`3108` for an exhaustive list.
|
||||||
|
|
||||||
* The :mod:`bsddb3` package was removed because its presence in the
|
* The :mod:`!bsddb3` package was removed because its presence in the
|
||||||
core standard library has proved over time to be a particular burden
|
core standard library has proved over time to be a particular burden
|
||||||
for the core developers due to testing instability and Berkeley DB's
|
for the core developers due to testing instability and Berkeley DB's
|
||||||
release schedule. However, the package is alive and well,
|
release schedule. However, the package is alive and well,
|
||||||
|
@ -588,40 +588,40 @@ review:
|
||||||
* A common pattern in Python 2.x is to have one version of a module
|
* A common pattern in Python 2.x is to have one version of a module
|
||||||
implemented in pure Python, with an optional accelerated version
|
implemented in pure Python, with an optional accelerated version
|
||||||
implemented as a C extension; for example, :mod:`pickle` and
|
implemented as a C extension; for example, :mod:`pickle` and
|
||||||
:mod:`cPickle`. This places the burden of importing the accelerated
|
:mod:`!cPickle`. This places the burden of importing the accelerated
|
||||||
version and falling back on the pure Python version on each user of
|
version and falling back on the pure Python version on each user of
|
||||||
these modules. In Python 3.0, the accelerated versions are
|
these modules. In Python 3.0, the accelerated versions are
|
||||||
considered implementation details of the pure Python versions.
|
considered implementation details of the pure Python versions.
|
||||||
Users should always import the standard version, which attempts to
|
Users should always import the standard version, which attempts to
|
||||||
import the accelerated version and falls back to the pure Python
|
import the accelerated version and falls back to the pure Python
|
||||||
version. The :mod:`pickle` / :mod:`cPickle` pair received this
|
version. The :mod:`pickle` / :mod:`!cPickle` pair received this
|
||||||
treatment. The :mod:`profile` module is on the list for 3.1. The
|
treatment. The :mod:`profile` module is on the list for 3.1. The
|
||||||
:mod:`StringIO` module has been turned into a class in the :mod:`io`
|
:mod:`!StringIO` module has been turned into a class in the :mod:`io`
|
||||||
module.
|
module.
|
||||||
|
|
||||||
* Some related modules have been grouped into packages, and usually
|
* Some related modules have been grouped into packages, and usually
|
||||||
the submodule names have been simplified. The resulting new
|
the submodule names have been simplified. The resulting new
|
||||||
packages are:
|
packages are:
|
||||||
|
|
||||||
* :mod:`dbm` (:mod:`anydbm`, :mod:`dbhash`, :mod:`dbm`,
|
* :mod:`dbm` (:mod:`!anydbm`, :mod:`!dbhash`, :mod:`!dbm`,
|
||||||
:mod:`dumbdbm`, :mod:`gdbm`, :mod:`whichdb`).
|
:mod:`!dumbdbm`, :mod:`!gdbm`, :mod:`!whichdb`).
|
||||||
|
|
||||||
* :mod:`html` (:mod:`HTMLParser`, :mod:`htmlentitydefs`).
|
* :mod:`html` (:mod:`!HTMLParser`, :mod:`!htmlentitydefs`).
|
||||||
|
|
||||||
* :mod:`http` (:mod:`httplib`, :mod:`BaseHTTPServer`,
|
* :mod:`http` (:mod:`!httplib`, :mod:`!BaseHTTPServer`,
|
||||||
:mod:`CGIHTTPServer`, :mod:`SimpleHTTPServer`, :mod:`Cookie`,
|
:mod:`!CGIHTTPServer`, :mod:`!SimpleHTTPServer`, :mod:`!Cookie`,
|
||||||
:mod:`cookielib`).
|
:mod:`!cookielib`).
|
||||||
|
|
||||||
* :mod:`tkinter` (all :mod:`Tkinter`-related modules except
|
* :mod:`tkinter` (all :mod:`Tkinter`-related modules except
|
||||||
:mod:`turtle`). The target audience of :mod:`turtle` doesn't
|
:mod:`turtle`). The target audience of :mod:`turtle` doesn't
|
||||||
really care about :mod:`tkinter`. Also note that as of Python
|
really care about :mod:`tkinter`. Also note that as of Python
|
||||||
2.6, the functionality of :mod:`turtle` has been greatly enhanced.
|
2.6, the functionality of :mod:`turtle` has been greatly enhanced.
|
||||||
|
|
||||||
* :mod:`urllib` (:mod:`urllib`, :mod:`urllib2`, :mod:`urlparse`,
|
* :mod:`urllib` (:mod:`!urllib`, :mod:`!urllib2`, :mod:`!urlparse`,
|
||||||
:mod:`robotparse`).
|
:mod:`!robotparse`).
|
||||||
|
|
||||||
* :mod:`xmlrpc` (:mod:`xmlrpclib`, :mod:`DocXMLRPCServer`,
|
* :mod:`xmlrpc` (:mod:`!xmlrpclib`, :mod:`!DocXMLRPCServer`,
|
||||||
:mod:`SimpleXMLRPCServer`).
|
:mod:`!SimpleXMLRPCServer`).
|
||||||
|
|
||||||
Some other changes to standard library modules, not covered by
|
Some other changes to standard library modules, not covered by
|
||||||
:pep:`3108`:
|
:pep:`3108`:
|
||||||
|
@ -642,9 +642,9 @@ Some other changes to standard library modules, not covered by
|
||||||
* Cleanup of the :mod:`operator` module: removed
|
* Cleanup of the :mod:`operator` module: removed
|
||||||
:func:`sequenceIncludes` and :func:`isCallable`.
|
:func:`sequenceIncludes` and :func:`isCallable`.
|
||||||
|
|
||||||
* Cleanup of the :mod:`thread` module: :func:`acquire_lock` and
|
* Cleanup of the :mod:`!thread` module: :func:`!acquire_lock` and
|
||||||
:func:`release_lock` are gone; use :func:`acquire` and
|
:func:`!release_lock` are gone; use :meth:`~threading.Lock.acquire` and
|
||||||
:func:`release` instead.
|
:meth:`~threading.Lock.release` instead.
|
||||||
|
|
||||||
* Cleanup of the :mod:`random` module: removed the :func:`jumpahead` API.
|
* Cleanup of the :mod:`random` module: removed the :func:`jumpahead` API.
|
||||||
|
|
||||||
|
|
|
@ -2418,7 +2418,7 @@ Changes in the Python API
|
||||||
(Contributed by Victor Stinner in :issue:`21205`.)
|
(Contributed by Victor Stinner in :issue:`21205`.)
|
||||||
|
|
||||||
* The deprecated "strict" mode and argument of :class:`~html.parser.HTMLParser`,
|
* The deprecated "strict" mode and argument of :class:`~html.parser.HTMLParser`,
|
||||||
:meth:`HTMLParser.error`, and the :exc:`HTMLParserError` exception have been
|
:meth:`!HTMLParser.error`, and the :exc:`!HTMLParserError` exception have been
|
||||||
removed. (Contributed by Ezio Melotti in :issue:`15114`.)
|
removed. (Contributed by Ezio Melotti in :issue:`15114`.)
|
||||||
The *convert_charrefs* argument of :class:`~html.parser.HTMLParser` is
|
The *convert_charrefs* argument of :class:`~html.parser.HTMLParser` is
|
||||||
now ``True`` by default. (Contributed by Berker Peksag in :issue:`21047`.)
|
now ``True`` by default. (Contributed by Berker Peksag in :issue:`21047`.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue