@@ -66,7 +66,6 @@ Summary -- Release highlights
66
66
.. PEP-sized items next.
67
67
68
68
69
-
70
69
New Features
71
70
============
72
71
209
208
os
210
209
--
211
210
212
- * On Windows, :func: `os.urandom ` uses ``BCryptGenRandom() `` instead of `` CryptGenRandom() ``
213
- which is deprecated.
211
+ * On Windows, :func: `os.urandom ` now uses ``BCryptGenRandom() ``,
212
+ instead of `` CryptGenRandom() `` which is deprecated.
214
213
(Contributed by Dong-hee Na in :issue: `44611 `.)
215
214
216
215
@@ -232,6 +231,14 @@ sqlite3
232
231
(Contributed by Aviv Palivoda, Daniel Shahaf, and Erlend E. Aasland in
233
232
:issue: `16379 `.)
234
233
234
+ time
235
+ ----
236
+
237
+ * In Unix operating systems, :func: `time.sleep ` now uses the
238
+ ``clock_nanosleep() `` function, if available, which allows to sleep for an
239
+ interval specified with nanosecond precision.
240
+ (Contributed by Livius and Victor Stinner in :issue: `21302 `.)
241
+
235
242
236
243
Removed
237
244
=======
@@ -265,6 +272,18 @@ Removed
265
272
and :class: `fileinput.FileInput `, deprecated since Python 3.9.
266
273
(Contributed by Hugo van Kemenade in :issue: `45132 `.)
267
274
275
+ * The following deprecated functions and methods are removed in the :mod: `gettext `
276
+ module: :func: `~gettext.lgettext `, :func: `~gettext.ldgettext `,
277
+ :func: `~gettext.lngettext ` and :func: `~gettext.ldngettext `.
278
+
279
+ Function :func: `~gettext.bind_textdomain_codeset `, methods
280
+ :meth: `~gettext.NullTranslations.output_charset ` and
281
+ :meth: `~gettext.NullTranslations.set_output_charset `, and the *codeset *
282
+ parameter of functions :func: `~gettext.translation ` and
283
+ :func: `~gettext.install ` are also removed, since they are only used for
284
+ the ``l*gettext() `` functions.
285
+ (Contributed by Dong-hee Na and Serhiy Storchaka in :issue: `44235 `.)
286
+
268
287
269
288
Optimizations
270
289
=============
@@ -317,6 +336,10 @@ Deprecated
317
336
It is untested and undocumented and also not used by webbrowser itself.
318
337
(Contributed by Dong-hee Na in :issue: `42255 `.)
319
338
339
+ * The behavior of returning a value from a :class: `~unittest.TestCase ` and
340
+ :class: `~unittest.IsolatedAsyncioTestCase ` test methods (other than the
341
+ default ``None `` value), is now deprecated.
342
+
320
343
321
344
Removed
322
345
=======
@@ -334,6 +357,7 @@ Removed
334
357
* Remove the deprecated ``split() `` method of :class: `_tkinter.TkappType `.
335
358
(Contributed by Erlend E. Aasland in :issue: `38371 `.)
336
359
360
+
337
361
Porting to Python 3.11
338
362
======================
339
363
@@ -476,19 +500,3 @@ Removed
476
500
Use the new :c:type: `PyConfig ` API of the :ref: `Python Initialization Configuration
477
501
<init-config>` instead (:pep: `587 `).
478
502
(Contributed by Victor Stinner in :issue: `44113 `.)
479
-
480
- * The following deprecated functions and methods are removed in the :mod: `gettext `
481
- module: :func: `~gettext.lgettext `, :func: `~gettext.ldgettext `,
482
- :func: `~gettext.lngettext ` and :func: `~gettext.ldngettext `.
483
-
484
- Function :func: `~gettext.bind_textdomain_codeset `, methods
485
- :meth: `~gettext.NullTranslations.output_charset ` and
486
- :meth: `~gettext.NullTranslations.set_output_charset `, and the *codeset *
487
- parameter of functions :func: `~gettext.translation ` and
488
- :func: `~gettext.install ` are also removed, since they are only used for
489
- the ``l*gettext() `` functions.
490
- (Contributed by Dong-hee Na and Serhiy Storchaka in :issue: `44235 `.)
491
-
492
- * The behavior of returning a value from a :class: `~unittest.TestCase ` and
493
- :class: `~unittest.IsolatedAsyncioTestCase ` test methods (other than the default ``None ``
494
- value), is now deprecated.
0 commit comments