@@ -81,7 +81,7 @@ Support was also added for third-party tools like `PyYAML <https://pyyaml.org/>`
81
81
written by Raymond Hettinger.
82
82
83
83
Since an ordered dictionary remembers its insertion order, it can be used
84
- in conjuction with sorting to make a sorted dictionary::
84
+ in conjunction with sorting to make a sorted dictionary::
85
85
86
86
>>> # regular unsorted dictionary
87
87
>>> d = {'banana': 3, 'apple':4, 'pear': 1, 'orange': 2}
@@ -174,7 +174,7 @@ Some smaller changes made to the core Python language are:
174
174
175
175
(Contributed by Eric Smith; :issue: `5237 `.)
176
176
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
178
178
static methods, :meth: `bytes.maketrans ` and :meth: `bytearray.maketrans `.
179
179
This change solves the confusion around which types were supported by the
180
180
:mod: `string ` module. Now, :class: `str `, :class: `bytes `, and
@@ -381,16 +381,20 @@ New, Improved, and Deprecated Modules
381
381
x / 0
382
382
383
383
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 `.
389
393
390
394
(Contributed by Benjamin Peterson and Antoine Pitrou.)
391
395
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 `.
394
398
395
399
* The :data: `sys.version_info ` tuple is now a named tuple::
396
400
0 commit comments