mirror of
https://github.com/python/cpython.git
synced 2024-12-01 05:45:40 +08:00
Be consistent and don't use a bullet list when a section has only one item.
This commit is contained in:
parent
3cfe52e9ef
commit
26d15bffaa
@ -1329,9 +1329,9 @@ underlying binary buffer.
|
|||||||
math
|
math
|
||||||
----
|
----
|
||||||
|
|
||||||
The :mod:`math` module has a new function:
|
The :mod:`math` module has a new function, :func:`~math.log2`, which returns
|
||||||
|
the base-2 logarithm of *x*.
|
||||||
|
|
||||||
* :func:`~math.log2`: return the base-2 logarithm of *x*
|
|
||||||
(Written by Mark Dickinson in :issue:`11888`).
|
(Written by Mark Dickinson in :issue:`11888`).
|
||||||
|
|
||||||
|
|
||||||
@ -1476,9 +1476,11 @@ os
|
|||||||
pdb
|
pdb
|
||||||
---
|
---
|
||||||
|
|
||||||
* Tab-completion is now available not only for command names, but also their
|
Tab-completion is now available not only for command names, but also their
|
||||||
arguments. For example, for the ``break`` command, function and file names
|
arguments. For example, for the ``break`` command, function and file names
|
||||||
are completed. (Contributed by Georg Brandl in :issue:`14210`)
|
are completed.
|
||||||
|
|
||||||
|
(Contributed by Georg Brandl in :issue:`14210`)
|
||||||
|
|
||||||
|
|
||||||
pickle
|
pickle
|
||||||
@ -1487,6 +1489,7 @@ pickle
|
|||||||
:class:`pickle.Pickler` objects now have an optional
|
:class:`pickle.Pickler` objects now have an optional
|
||||||
:attr:`~pickle.Pickler.dispatch_table` attribute allowing to set per-pickler
|
:attr:`~pickle.Pickler.dispatch_table` attribute allowing to set per-pickler
|
||||||
reduction functions.
|
reduction functions.
|
||||||
|
|
||||||
(Contributed by Richard Oudkerk in :issue:`14166`.)
|
(Contributed by Richard Oudkerk in :issue:`14166`.)
|
||||||
|
|
||||||
|
|
||||||
@ -1536,7 +1539,7 @@ sched
|
|||||||
shlex
|
shlex
|
||||||
-----
|
-----
|
||||||
|
|
||||||
* The previously undocumented helper function ``quote`` from the
|
The previously undocumented helper function ``quote`` from the
|
||||||
:mod:`pipes` modules has been moved to the :mod:`shlex` module and
|
:mod:`pipes` modules has been moved to the :mod:`shlex` module and
|
||||||
documented. :func:`~shlex.quote` properly escapes all characters in a string
|
documented. :func:`~shlex.quote` properly escapes all characters in a string
|
||||||
that might be otherwise given special meaning by the shell.
|
that might be otherwise given special meaning by the shell.
|
||||||
@ -1599,7 +1602,7 @@ signal
|
|||||||
smtpd
|
smtpd
|
||||||
-----
|
-----
|
||||||
|
|
||||||
* The :mod:`smtpd` module now supports :rfc:`5321` (extended SMTP) and :rfc:`1870`
|
The :mod:`smtpd` module now supports :rfc:`5321` (extended SMTP) and :rfc:`1870`
|
||||||
(size extension). Per the standard, these extensions are enabled if and only
|
(size extension). Per the standard, these extensions are enabled if and only
|
||||||
if the client initiates the session with an ``EHLO`` command.
|
if the client initiates the session with an ``EHLO`` command.
|
||||||
|
|
||||||
@ -1611,7 +1614,7 @@ smtpd
|
|||||||
smtplib
|
smtplib
|
||||||
-------
|
-------
|
||||||
|
|
||||||
* The :class:`~smtplib.SMTP_SSL` constructor and the :meth:`~smtplib.SMTP.starttls`
|
The :class:`~smtplib.SMTP_SSL` constructor and the :meth:`~smtplib.SMTP.starttls`
|
||||||
method now accept an SSLContext parameter to control parameters of the secure
|
method now accept an SSLContext parameter to control parameters of the secure
|
||||||
channel.
|
channel.
|
||||||
|
|
||||||
@ -1693,7 +1696,7 @@ ssl
|
|||||||
stat
|
stat
|
||||||
----
|
----
|
||||||
|
|
||||||
- The undocumented tarfile.filemode function has been moved to
|
The undocumented tarfile.filemode function has been moved to
|
||||||
:func:`stat.filemode`. It can be used to convert a file's mode to a string of
|
:func:`stat.filemode`. It can be used to convert a file's mode to a string of
|
||||||
the form '-rwxrwxrwx'.
|
the form '-rwxrwxrwx'.
|
||||||
|
|
||||||
@ -1702,7 +1705,7 @@ stat
|
|||||||
sys
|
sys
|
||||||
---
|
---
|
||||||
|
|
||||||
* The :mod:`sys` module has a new :data:`~sys.thread_info` :term:`struct
|
The :mod:`sys` module has a new :data:`~sys.thread_info` :term:`struct
|
||||||
sequence` holding informations about the thread implementation.
|
sequence` holding informations about the thread implementation.
|
||||||
|
|
||||||
(:issue:`11223`)
|
(:issue:`11223`)
|
||||||
@ -1710,7 +1713,7 @@ sys
|
|||||||
textwrap
|
textwrap
|
||||||
--------
|
--------
|
||||||
|
|
||||||
* The :mod:`textwrap` module has a new :func:`~textwrap.indent` that makes
|
The :mod:`textwrap` module has a new :func:`~textwrap.indent` that makes
|
||||||
it straightforward to add a common prefix to selected lines in a block
|
it straightforward to add a common prefix to selected lines in a block
|
||||||
of text.
|
of text.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user