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

Commit30fce5f

Browse files
authored
gh-101100: Fix Sphinx warnings inwhatsnew/3.1.rst (#115575)
1 parent9fd420f commit30fce5f

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

‎Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ Doc/whatsnew/2.5.rst
8686
Doc/whatsnew/2.6.rst
8787
Doc/whatsnew/2.7.rst
8888
Doc/whatsnew/3.0.rst
89-
Doc/whatsnew/3.1.rst
9089
Doc/whatsnew/3.2.rst
9190
Doc/whatsnew/3.3.rst
9291
Doc/whatsnew/3.4.rst

‎Doc/whatsnew/3.1.rst

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Support was also added for third-party tools like `PyYAML <https://pyyaml.org/>`
8181
written by Raymond Hettinger.
8282

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

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

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

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

383383
In addition, several new assertion methods were added including
384-
:func:`assertSetEqual`,:func:`assertDictEqual`,
385-
:func:`assertDictContainsSubset`,:func:`assertListEqual`,
386-
:func:`assertTupleEqual`,:func:`assertSequenceEqual`,
387-
:func:`assertRaisesRegexp`,:func:`assertIsNone`,
388-
and:func:`assertIsNotNone`.
384+
:meth:`~unittest.TestCase.assertSetEqual`,
385+
:meth:`~unittest.TestCase.assertDictEqual`,
386+
:meth:`!assertDictContainsSubset`,
387+
:meth:`~unittest.TestCase.assertListEqual`,
388+
:meth:`~unittest.TestCase.assertTupleEqual`,
389+
:meth:`~unittest.TestCase.assertSequenceEqual`,
390+
:meth:`assertRaisesRegexp() <unittest.TestCase.assertRaisesRegex>`,
391+
:meth:`~unittest.TestCase.assertIsNone`,
392+
and:meth:`~unittest.TestCase.assertIsNotNone`.
389393

390394
(Contributed by Benjamin Peterson and Antoine Pitrou.)
391395

392-
* The:mod:`io` module has three new constants for the:meth:`seek`
393-
method:data:`SEEK_SET`,:data:`SEEK_CUR`, and:data:`SEEK_END`.
396+
* The:mod:`io` module has three new constants for the:meth:`~io.IOBase.seek`
397+
method::data:`~os.SEEK_SET`,:data:`~os.SEEK_CUR`, and:data:`~os.SEEK_END`.
394398

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp