Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.11] gh-101100: Fix Sphinx warnings inwhatsnew/3.1.rst (GH-115575)#115588

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 1 commit intopython:3.11frommiss-islington:backport-30fce5f-3.11
Feb 17, 2024
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletionDoc/tools/.nitignore
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -91,7 +91,6 @@ Doc/whatsnew/2.5.rst
Doc/whatsnew/2.6.rst
Doc/whatsnew/2.7.rst
Doc/whatsnew/3.0.rst
Doc/whatsnew/3.1.rst
Doc/whatsnew/3.2.rst
Doc/whatsnew/3.3.rst
Doc/whatsnew/3.4.rst
Expand Down
22 changes: 13 additions & 9 deletionsDoc/whatsnew/3.1.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -81,7 +81,7 @@ Support was also added for third-party tools like `PyYAML <https://pyyaml.org/>`
written by Raymond Hettinger.

Since an ordered dictionary remembers its insertion order, it can be used
inconjuction with sorting to make a sorted dictionary::
inconjunction with sorting to make a sorted dictionary::

>>> # regular unsorted dictionary
>>> d = {'banana': 3, 'apple':4, 'pear': 1, 'orange': 2}
Expand DownExpand Up@@ -174,7 +174,7 @@ Some smaller changes made to the core Python language are:

(Contributed by Eric Smith; :issue:`5237`.)

* The :func:`string.maketrans` function is deprecated and is replaced by new
* The :func:`!string.maketrans` function is deprecated and is replaced by new
static methods, :meth:`bytes.maketrans` and :meth:`bytearray.maketrans`.
This change solves the confusion around which types were supported by the
:mod:`string` module. Now, :class:`str`, :class:`bytes`, and
Expand DownExpand Up@@ -381,16 +381,20 @@ New, Improved, and Deprecated Modules
x / 0

In addition, several new assertion methods were added including
:func:`assertSetEqual`, :func:`assertDictEqual`,
:func:`assertDictContainsSubset`, :func:`assertListEqual`,
:func:`assertTupleEqual`, :func:`assertSequenceEqual`,
:func:`assertRaisesRegexp`, :func:`assertIsNone`,
and :func:`assertIsNotNone`.
:meth:`~unittest.TestCase.assertSetEqual`,
:meth:`~unittest.TestCase.assertDictEqual`,
:meth:`!assertDictContainsSubset`,
:meth:`~unittest.TestCase.assertListEqual`,
:meth:`~unittest.TestCase.assertTupleEqual`,
:meth:`~unittest.TestCase.assertSequenceEqual`,
:meth:`assertRaisesRegexp() <unittest.TestCase.assertRaisesRegex>`,
:meth:`~unittest.TestCase.assertIsNone`,
and :meth:`~unittest.TestCase.assertIsNotNone`.

(Contributed by Benjamin Peterson and Antoine Pitrou.)

* The :mod:`io` module has three new constants for the :meth:`seek`
method :data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`.
* The :mod:`io` module has three new constants for the :meth:`~io.IOBase.seek`
method: :data:`~os.SEEK_SET`, :data:`~os.SEEK_CUR`, and :data:`~os.SEEK_END`.

* The :data:`sys.version_info` tuple is now a named tuple::

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp