| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -995,7 +995,7 @@ fixes. Here's a partial list of the most notable changes, sorted alphabetically | |||
| 995 | 995 | by module name. Consult the :file:`Misc/NEWS` file in the source tree for a more | |
| 996 | 996 | complete list of changes, or look through the CVS logs for all the details. | |
| 997 | 997 | ||
| 998 | - * The :mod:`asyncore` module's :func:`loop` function now has a *count* parameter | ||
| 998 | + * The :mod:`!asyncore` module's :func:`!loop` function now has a *count* parameter | ||
| 999 | 999 | that lets you perform a limited number of passes through the polling loop. The | |
| 1000 | 1000 | default is still to loop forever. | |
| 1001 | 1001 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1789,7 +1789,7 @@ changes, sorted alphabetically by module name. Consult the | |||
| 1789 | 1789 | :file:`Misc/NEWS` file in the source tree for a more complete list of | |
| 1790 | 1790 | changes, or look through the Subversion logs for all the details. | |
| 1791 | 1791 | ||
| 1792 | - * The :mod:`asyncore` and :mod:`asynchat` modules are | ||
| 1792 | + * The :mod:`!asyncore` and :mod:`!asynchat` modules are | ||
| 1793 | 1793 | being actively maintained again, and a number of patches and bugfixes | |
| 1794 | 1794 | were applied. (Maintained by Josiah Carlson; see :issue:`1736190` for | |
| 1795 | 1795 | one patch.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1278,7 +1278,7 @@ Add negative indexing support to :attr:`PurePath.parents | |||
| 1278 | 1278 | (Contributed by Yaroslav Pankovych in :issue:`21041`.) | |
| 1279 | 1279 | ||
| 1280 | 1280 | Add :meth:`Path.hardlink_to <pathlib.Path.hardlink_to>` method that | |
| 1281 | - supersedes :meth:`~pathlib.Path.link_to`. The new method has the same argument | ||
| 1281 | + supersedes :meth:`!link_to`. The new method has the same argument | ||
| 1282 | 1282 | order as :meth:`~pathlib.Path.symlink_to`. | |
| 1283 | 1283 | (Contributed by Barney Gale in :issue:`39950`.) | |
| 1284 | 1284 | ||
@@ -1740,7 +1740,7 @@ Deprecated | |||
| 1740 | 1740 | ||
| 1741 | 1741 | (Contributed by Jelle Zijlstra in :gh:`87889`.) | |
| 1742 | 1742 | ||
| 1743 | - * :meth:`pathlib.Path.link_to` is deprecated and slated for removal in | ||
| 1743 | + * :meth:`!pathlib.Path.link_to` is deprecated and slated for removal in | ||
| 1744 | 1744 | Python 3.12. Use :meth:`pathlib.Path.hardlink_to` instead. | |
| 1745 | 1745 | (Contributed by Barney Gale in :issue:`39950`.) | |
| 1746 | 1746 | ||
@@ -1771,7 +1771,7 @@ Deprecated | |||
| 1771 | 1771 | * NPN features like :meth:`ssl.SSLSocket.selected_npn_protocol` and | |
| 1772 | 1772 | :meth:`ssl.SSLContext.set_npn_protocols` are replaced by ALPN. | |
| 1773 | 1773 | ||
| 1774 | - * The threading debug (:envvar:`PYTHONTHREADDEBUG` environment variable) is | ||
| 1774 | + * The threading debug (:envvar:`!PYTHONTHREADDEBUG` environment variable) is | ||
| 1775 | 1775 | deprecated in Python 3.10 and will be removed in Python 3.12. This feature | |
| 1776 | 1776 | requires a :ref:`debug build of Python <debug-build>`. | |
| 1777 | 1777 | (Contributed by Victor Stinner in :issue:`44584`.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1747,7 +1747,7 @@ Modules | |||
| 1747 | 1747 | (Contributed by Brett Cannon in :issue:`47061` and Victor Stinner in | |
| 1748 | 1748 | :gh:`68966`.) | |
| 1749 | 1749 | ||
| 1750 | - * The :mod:`asynchat`, :mod:`asyncore` and :mod:`smtpd` modules have been | ||
| 1750 | + * The :mod:`!asynchat`, :mod:`!asyncore` and :mod:`!smtpd` modules have been | ||
| 1751 | 1751 | deprecated since at least Python 3.6. Their documentation and deprecation | |
| 1752 | 1752 | warnings have now been updated to note they will be removed in Python 3.12. | |
| 1753 | 1753 | (Contributed by Hugo van Kemenade in :issue:`47022`.) | |
@@ -1877,8 +1877,8 @@ and will be removed in Python 3.12. | |||
| 1877 | 1877 | C APIs pending removal are | |
| 1878 | 1878 | :ref:`listed separately <whatsnew311-c-api-pending-removal>`. | |
| 1879 | 1879 | ||
| 1880 | - * The :mod:`asynchat` module | ||
| 1881 | - * The :mod:`asyncore` module | ||
| 1880 | + * The :mod:`!asynchat` module | ||
| 1881 | + * The :mod:`!asyncore` module | ||
| 1882 | 1882 | * The :ref:`entire distutils package <distutils-deprecated>` | |
| 1883 | 1883 | * The :mod:`!imp` module | |
| 1884 | 1884 | * The :class:`typing.io <typing.IO>` namespace | |
@@ -1902,10 +1902,10 @@ C APIs pending removal are | |||
| 1902 | 1902 | * :func:`!importlib.util.set_package_wrapper` | |
| 1903 | 1903 | * :class:`!pkgutil.ImpImporter` | |
| 1904 | 1904 | * :class:`!pkgutil.ImpLoader` | |
| 1905 | - * :meth:`pathlib.Path.link_to` | ||
| 1905 | + * :meth:`!pathlib.Path.link_to` | ||
| 1906 | 1906 | * :func:`!sqlite3.enable_shared_cache` | |
| 1907 | 1907 | * :func:`!sqlite3.OptimizedUnicode` | |
| 1908 | - * :envvar:`PYTHONTHREADDEBUG` environment variable | ||
| 1908 | + * :envvar:`!PYTHONTHREADDEBUG` environment variable | ||
| 1909 | 1909 | * The following deprecated aliases in :mod:`unittest`: | |
| 1910 | 1910 | ||
| 1911 | 1911 | ============================ =============================== =============== | |
@@ -2007,7 +2007,7 @@ Removed C APIs are :ref:`listed separately <whatsnew311-c-api-removed>`. | |||
| 2007 | 2007 | because it was not used and added by mistake in previous versions. | |
| 2008 | 2008 | (Contributed by Nikita Sobolev in :issue:`46483`.) | |
| 2009 | 2009 | ||
| 2010 | - * Removed the :class:`!MailmanProxy` class in the :mod:`smtpd` module, | ||
| 2010 | + * Removed the :class:`!MailmanProxy` class in the :mod:`!smtpd` module, | ||
| 2011 | 2011 | as it is unusable without the external :mod:`!mailman` package. | |
| 2012 | 2012 | (Contributed by Donghee Na in :issue:`35800`.) | |
| 2013 | 2013 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1858,12 +1858,12 @@ structure. | |||
| 1858 | 1858 | asyncore | |
| 1859 | 1859 | -------- | |
| 1860 | 1860 | ||
| 1861 | - :class:`asyncore.dispatcher` now provides a | ||
| 1862 | - :meth:`~asyncore.dispatcher.handle_accepted()` method | ||
| 1861 | + :class:`!asyncore.dispatcher` now provides a | ||
| 1862 | + :meth:`!handle_accepted()` method | ||
| 1863 | 1863 | returning a ``(sock, addr)`` pair which is called when a connection has actually | |
| 1864 | 1864 | been established with a new remote endpoint. This is supposed to be used as a | |
| 1865 | - replacement for old :meth:`~asyncore.dispatcher.handle_accept()` and avoids | ||
| 1866 | - the user to call :meth:`~asyncore.dispatcher.accept()` directly. | ||
| 1865 | + replacement for old :meth:`!handle_accept()` and avoids | ||
| 1866 | + the user to call :meth:`!accept()` directly. | ||
| 1867 | 1867 | ||
| 1868 | 1868 | (Contributed by Giampaolo Rodolà; :issue:`6706`.) | |
| 1869 | 1869 | ||
@@ -2737,8 +2737,8 @@ require changes to your code: | |||
| 2737 | 2737 | thread-state aware APIs (such as :c:func:`PyEval_SaveThread` | |
| 2738 | 2738 | and :c:func:`PyEval_RestoreThread`) should be used instead. | |
| 2739 | 2739 | ||
| 2740 | - * Due to security risks, :func:`asyncore.handle_accept` has been deprecated, and | ||
| 2741 | - a new function, :func:`asyncore.handle_accepted`, was added to replace it. | ||
| 2740 | + * Due to security risks, :func:`!asyncore.handle_accept` has been deprecated, and | ||
| 2741 | + a new function, :func:`!asyncore.handle_accepted`, was added to replace it. | ||
| 2742 | 2742 | ||
| 2743 | 2743 | (Contributed by Giampaolo Rodola in :issue:`6706`.) | |
| 2744 | 2744 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1845,7 +1845,7 @@ signal | |||
| 1845 | 1845 | smtpd | |
| 1846 | 1846 | ----- | |
| 1847 | 1847 | ||
| 1848 | - The :mod:`smtpd` module now supports :rfc:`5321` (extended SMTP) and :rfc:`1870` | ||
| 1848 | + The :mod:`!smtpd` module now supports :rfc:`5321` (extended SMTP) and :rfc:`1870` | ||
| 1849 | 1849 | (size extension). Per the standard, these extensions are enabled if and only | |
| 1850 | 1850 | if the client initiates the session with an ``EHLO`` command. | |
| 1851 | 1851 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1369,9 +1369,9 @@ error. (Contributed by Atsuo Ishimoto and Hynek Schlawack in | |||
| 1369 | 1369 | smtpd | |
| 1370 | 1370 | ----- | |
| 1371 | 1371 | ||
| 1372 | - The :class:`~smtpd.SMTPServer` and :class:`~smtpd.SMTPChannel` classes now | ||
| 1372 | + The :class:`!SMTPServer` and :class:`!SMTPChannel` classes now | ||
| 1373 | 1373 | accept a *map* keyword argument which, if specified, is passed in to | |
| 1374 | - :class:`asynchat.async_chat` as its *map* argument. This allows an application | ||
| 1374 | + :class:`!asynchat.async_chat` as its *map* argument. This allows an application | ||
| 1375 | 1375 | to avoid affecting the global socket map. (Contributed by Vinay Sajip in | |
| 1376 | 1376 | :issue:`11959`.) | |
| 1377 | 1377 | ||
@@ -2370,7 +2370,7 @@ Changes in the Python API | |||
| 2370 | 2370 | :issue:`18011`.) Note: this change was also inadvertently applied in Python | |
| 2371 | 2371 | 3.3.3. | |
| 2372 | 2372 | ||
| 2373 | - * The :attr:`~cgi.FieldStorage.file` attribute is now automatically closed when | ||
| 2373 | + * The :attr:`!file` attribute is now automatically closed when | ||
| 2374 | 2374 | the creating :class:`!cgi.FieldStorage` instance is garbage collected. If you | |
| 2375 | 2375 | were pulling the file object out separately from the :class:`!cgi.FieldStorage` | |
| 2376 | 2376 | instance and not keeping the instance alive, then you should either store the | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -878,7 +878,7 @@ size of decompressed data. (Contributed by Nikolaus Rath in :issue:`15955`.) | |||
| 878 | 878 | cgi | |
| 879 | 879 | --- | |
| 880 | 880 | ||
| 881 | - The :class:`~cgi.FieldStorage` class now supports the :term:`context manager` | ||
| 881 | + The :class:`!FieldStorage` class now supports the :term:`context manager` | ||
| 882 | 882 | protocol. (Contributed by Berker Peksag in :issue:`20289`.) | |
| 883 | 883 | ||
| 884 | 884 | ||
@@ -1663,34 +1663,34 @@ during debugging, instead of integer "magic numbers". | |||
| 1663 | 1663 | smtpd | |
| 1664 | 1664 | ----- | |
| 1665 | 1665 | ||
| 1666 | - Both the :class:`~smtpd.SMTPServer` and :class:`~smtpd.SMTPChannel` classes now | ||
| 1666 | + Both the :class:`!SMTPServer` and :class:`!SMTPChannel` classes now | ||
| 1667 | 1667 | accept a *decode_data* keyword argument to determine if the ``DATA`` portion of | |
| 1668 | 1668 | the SMTP transaction is decoded using the ``"utf-8"`` codec or is instead | |
| 1669 | 1669 | provided to the | |
| 1670 | - :meth:`SMTPServer.process_message() <smtpd.SMTPServer.process_message>` | ||
| 1670 | + :meth:`!SMTPServer.process_message()` | ||
| 1671 | 1671 | method as a byte string. The default is ``True`` for backward compatibility | |
| 1672 | 1672 | reasons, but will change to ``False`` in Python 3.6. If *decode_data* is set | |
| 1673 | 1673 | to ``False``, the ``process_message`` method must be prepared to accept keyword | |
| 1674 | 1674 | arguments. | |
| 1675 | 1675 | (Contributed by Maciej Szulik in :issue:`19662`.) | |
| 1676 | 1676 | ||
| 1677 | - The :class:`~smtpd.SMTPServer` class now advertises the ``8BITMIME`` extension | ||
| 1677 | + The :class:`!SMTPServer` class now advertises the ``8BITMIME`` extension | ||
| 1678 | 1678 | (:rfc:`6152`) if *decode_data* has been set ``True``. If the client | |
| 1679 | 1679 | specifies ``BODY=8BITMIME`` on the ``MAIL`` command, it is passed to | |
| 1680 | - :meth:`SMTPServer.process_message() <smtpd.SMTPServer.process_message>` | ||
| 1680 | + :meth:`!SMTPServer.process_message()` | ||
| 1681 | 1681 | via the *mail_options* keyword. | |
| 1682 | 1682 | (Contributed by Milan Oberkirch and R. David Murray in :issue:`21795`.) | |
| 1683 | 1683 | ||
| 1684 | - The :class:`~smtpd.SMTPServer` class now also supports the ``SMTPUTF8`` | ||
| 1684 | + The :class:`!SMTPServer` class now also supports the ``SMTPUTF8`` | ||
| 1685 | 1685 | extension (:rfc:`6531`: Internationalized Email). If the client specified | |
| 1686 | 1686 | ``SMTPUTF8 BODY=8BITMIME`` on the ``MAIL`` command, they are passed to | |
| 1687 | - :meth:`SMTPServer.process_message() <smtpd.SMTPServer.process_message>` | ||
| 1687 | + :meth:`!SMTPServer.process_message()` | ||
| 1688 | 1688 | via the *mail_options* keyword. It is the responsibility of the | |
| 1689 | 1689 | ``process_message`` method to correctly handle the ``SMTPUTF8`` data. | |
| 1690 | 1690 | (Contributed by Milan Oberkirch in :issue:`21725`.) | |
| 1691 | 1691 | ||
| 1692 | 1692 | It is now possible to provide, directly or via name resolution, IPv6 | |
| 1693 | - addresses in the :class:`~smtpd.SMTPServer` constructor, and have it | ||
| 1693 | + addresses in the :class:`!SMTPServer` constructor, and have it | ||
| 1694 | 1694 | successfully connect. (Contributed by Milan Oberkirch in :issue:`14758`.) | |
| 1695 | 1695 | ||
| 1696 | 1696 | ||
@@ -1714,7 +1714,7 @@ support :rfc:`6531` (SMTPUTF8). | |||
| 1714 | 1714 | sndhdr | |
| 1715 | 1715 | ------ | |
| 1716 | 1716 | ||
| 1717 | - The :func:`~sndhdr.what` and :func:`~sndhdr.whathdr` functions now return | ||
| 1717 | + The :func:`!what` and :func:`!whathdr` functions now return | ||
| 1718 | 1718 | a :func:`~collections.namedtuple`. (Contributed by Claudiu Popa in | |
| 1719 | 1719 | :issue:`18615`.) | |
| 1720 | 1720 | ||
@@ -2296,9 +2296,9 @@ slated for removal in Python 3.6. | |||
| 2296 | 2296 | The :func:`asyncio.async` function is deprecated in favor of | |
| 2297 | 2297 | :func:`~asyncio.ensure_future`. | |
| 2298 | 2298 | ||
| 2299 | - The :mod:`smtpd` module has in the past always decoded the DATA portion of | ||
| 2299 | + The :mod:`!smtpd` module has in the past always decoded the DATA portion of | ||
| 2300 | 2300 | email messages using the ``utf-8`` codec. This can now be controlled by the | |
| 2301 | - new *decode_data* keyword to :class:`~smtpd.SMTPServer`. The default value is | ||
| 2301 | + new *decode_data* keyword to :class:`!SMTPServer`. The default value is | ||
| 2302 | 2302 | ``True``, but this default is deprecated. Specify the *decode_data* keyword | |
| 2303 | 2303 | with an appropriate value to avoid the deprecation warning. | |
| 2304 | 2304 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1961,14 +1961,14 @@ Deprecated Python modules, functions and methods | |||
| 1961 | 1961 | asynchat | |
| 1962 | 1962 | ~~~~~~~~ | |
| 1963 | 1963 | ||
| 1964 | - The :mod:`asynchat` has been deprecated in favor of :mod:`asyncio`. | ||
| 1964 | + The :mod:`!asynchat` has been deprecated in favor of :mod:`asyncio`. | ||
| 1965 | 1965 | (Contributed by Mariatta in :issue:`25002`.) | |
| 1966 | 1966 | ||
| 1967 | 1967 | ||
| 1968 | 1968 | asyncore | |
| 1969 | 1969 | ~~~~~~~~ | |
| 1970 | 1970 | ||
| 1971 | - The :mod:`asyncore` has been deprecated in favor of :mod:`asyncio`. | ||
| 1971 | + The :mod:`!asyncore` has been deprecated in favor of :mod:`asyncio`. | ||
| 1972 | 1972 | (Contributed by Mariatta in :issue:`25002`.) | |
| 1973 | 1973 | ||
| 1974 | 1974 | ||
@@ -2189,7 +2189,7 @@ Changes in the Python API | |||
| 2189 | 2189 | :mod:`calendar`, :mod:`!cgi`, :mod:`csv`, | |
| 2190 | 2190 | :mod:`~xml.etree.ElementTree`, :mod:`enum`, | |
| 2191 | 2191 | :mod:`fileinput`, :mod:`ftplib`, :mod:`logging`, :mod:`mailbox`, | |
| 2192 | - :mod:`mimetypes`, :mod:`optparse`, :mod:`plistlib`, :mod:`smtpd`, | ||
| 2192 | + :mod:`mimetypes`, :mod:`optparse`, :mod:`plistlib`, :mod:`!smtpd`, | ||
| 2193 | 2193 | :mod:`subprocess`, :mod:`tarfile`, :mod:`threading` and | |
| 2194 | 2194 | :mod:`wave`. This means they will export new symbols when ``import *`` | |
| 2195 | 2195 | is used. | |
@@ -2219,11 +2219,11 @@ Changes in the Python API | |||
| 2219 | 2219 | an error (e.g. ``EBADF``) was reported by the underlying system call. | |
| 2220 | 2220 | (Contributed by Martin Panter in :issue:`26685`.) | |
| 2221 | 2221 | ||
| 2222 | - * The *decode_data* argument for the :class:`smtpd.SMTPChannel` and | ||
| 2223 | - :class:`smtpd.SMTPServer` constructors is now ``False`` by default. | ||
| 2222 | + * The *decode_data* argument for the :class:`!smtpd.SMTPChannel` and | ||
| 2223 | + :class:`!smtpd.SMTPServer` constructors is now ``False`` by default. | ||
| 2224 | 2224 | This means that the argument passed to | |
| 2225 | - :meth:`~smtpd.SMTPServer.process_message` is now a bytes object by | ||
| 2226 | - default, and ``process_message()`` will be passed keyword arguments. | ||
| 2225 | + :meth:`!process_message` is now a bytes object by | ||
| 2226 | + default, and :meth:`!process_message` will be passed keyword arguments. | ||
| 2227 | 2227 | Code that has already been updated in accordance with the deprecation | |
| 2228 | 2228 | warning generated by 3.5 will not be affected. | |
| 2229 | 2229 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2304,9 +2304,9 @@ Changes in the Python API | |||
| 2304 | 2304 | * The :attr:`struct.Struct.format` type is now :class:`str` instead of | |
| 2305 | 2305 | :class:`bytes`. (Contributed by Victor Stinner in :issue:`21071`.) | |
| 2306 | 2306 | ||
| 2307 | - * :func:`~cgi.parse_multipart` now accepts the *encoding* and *errors* | ||
| 2307 | + * :func:`!cgi.parse_multipart` now accepts the *encoding* and *errors* | ||
| 2308 | 2308 | arguments and returns the same results as | |
| 2309 | - :class:`~FieldStorage`: for non-file fields, the value associated to a key | ||
| 2309 | + :class:`!FieldStorage`: for non-file fields, the value associated to a key | ||
| 2310 | 2310 | is a list of strings, not bytes. | |
| 2311 | 2311 | (Contributed by Pierre Quentel in :issue:`29979`.) | |
| 2312 | 2312 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments