@@ -205,6 +205,14 @@ with this change. The overridden methods of :class:`~imaplib.IMAP4_SSL` and
205
205
:class: `~imaplib.IMAP4_stream ` were applied to this change.
206
206
(Contributed by Dong-hee Na in :issue: `38615 `.)
207
207
208
+ importlib
209
+ ---------
210
+
211
+ To improve consistency with import statements, :func: `importlib.util.resolve_name `
212
+ now raises :exc: `ImportError ` instead of :exc: `ValueError ` for invalid relative
213
+ import attempts.
214
+ (Contributed by Ngalim Siregar in :issue: `37444 `.)
215
+
208
216
math
209
217
----
210
218
@@ -240,52 +248,31 @@ The :func:`os.putenv` and :func:`os.unsetenv` functions are now always
240
248
available.
241
249
(Contributed by Victor Stinner in :issue: `39395 `.)
242
250
243
- poplib
244
- ------
245
-
246
- :class: `~poplib.POP3 ` and :class: `~poplib.POP3_SSL ` now raise a :class: `ValueError `
247
- if the given timeout for their constructor is zero to prevent the creation of
248
- a non-blocking socket. (Contributed by Dong-hee Na in :issue: `39259 `.)
249
-
250
- threading
251
- ---------
252
-
253
- In a subinterpreter, spawning a daemon thread now raises a :exc: `RuntimeError `. Daemon
254
- threads were never supported in subinterpreters. Previously, the subinterpreter
255
- finalization crashed with a Python fatal error if a daemon thread was still
256
- running.
257
- (Contributed by Victor Stinner in :issue: `37266 `.)
258
-
259
- venv
260
- ----
261
-
262
- The activation scripts provided by :mod: `venv ` now all specify their prompt
263
- customization consistently by always using the value specified by
264
- ``__VENV_PROMPT__ ``. Previously some scripts unconditionally used
265
- ``__VENV_PROMPT__ ``, others only if it happened to be set (which was the default
266
- case), and one used ``__VENV_NAME__ `` instead.
267
- (Contributed by Brett Cannon in :issue: `37663 `.)
268
-
269
251
pathlib
270
252
-------
271
253
272
254
Added :meth: `pathlib.Path.readlink() ` which acts similarly to
273
255
:func: `os.readlink `.
274
256
(Contributed by Girts Folkmanis in :issue: `30618 `)
275
257
258
+ poplib
259
+ ------
260
+
261
+ :class: `~poplib.POP3 ` and :class: `~poplib.POP3_SSL ` now raise a :class: `ValueError `
262
+ if the given timeout for their constructor is zero to prevent the creation of
263
+ a non-blocking socket. (Contributed by Dong-hee Na in :issue: `39259 `.)
264
+
276
265
pprint
277
266
------
278
267
279
268
:mod: `pprint ` can now pretty-print :class: `types.SimpleNamespace `.
280
269
(Contributed by Carl Bordum Hansen in :issue: `37376 `.)
281
270
282
- importlib
283
- ---------
271
+ signal
272
+ ------
284
273
285
- To improve consistency with import statements, :func: `importlib.util.resolve_name `
286
- now raises :exc: `ImportError ` instead of :exc: `ValueError ` for invalid relative
287
- import attempts.
288
- (Contributed by Ngalim Siregar in :issue: `37444 `.)
274
+ Exposed the Linux-specific :func: `signal.pidfd_send_signal ` for sending to
275
+ signals to a process using a file descriptor instead of a pid. (:issue: `38712 `)
289
276
290
277
smtplib
291
278
-------
@@ -297,11 +284,14 @@ a non-blocking socket. (Contributed by Dong-hee Na in :issue:`39259`.)
297
284
:class: `~smtplib.LMTP ` constructor now has an optional *timeout * parameter.
298
285
(Contributed by Dong-hee Na in :issue: `39329 `.)
299
286
300
- signal
301
- ------
287
+ threading
288
+ ---------
302
289
303
- Exposed the Linux-specific :func: `signal.pidfd_send_signal ` for sending to
304
- signals to a process using a file descriptor instead of a pid. (:issue: `38712 `)
290
+ In a subinterpreter, spawning a daemon thread now raises a :exc: `RuntimeError `. Daemon
291
+ threads were never supported in subinterpreters. Previously, the subinterpreter
292
+ finalization crashed with a Python fatal error if a daemon thread was still
293
+ running.
294
+ (Contributed by Victor Stinner in :issue: `37266 `.)
305
295
306
296
typing
307
297
------
@@ -311,6 +301,16 @@ types with context-specific metadata and new ``include_extras`` parameter to
311
301
:func: `typing.get_type_hints ` to access the metadata at runtime. (Contributed
312
302
by Till Varoquaux and Konstantin Kashin.)
313
303
304
+ venv
305
+ ----
306
+
307
+ The activation scripts provided by :mod: `venv ` now all specify their prompt
308
+ customization consistently by always using the value specified by
309
+ ``__VENV_PROMPT__ ``. Previously some scripts unconditionally used
310
+ ``__VENV_PROMPT__ ``, others only if it happened to be set (which was the default
311
+ case), and one used ``__VENV_NAME__ `` instead.
312
+ (Contributed by Brett Cannon in :issue: `37663 `.)
313
+
314
314
315
315
Optimizations
316
316
=============
0 commit comments