8000 What's New in Python 3.9: sort improved modules (GH-18383) · python/cpython@227af8e · GitHub
[go: up one dir, main page]

Skip to content

Commit 227af8e

Browse files
authored
What's New in Python 3.9: sort improved modules (GH-18383)
1 parent 2844336 commit 227af8e

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

Doc/whatsnew/3.9.rst

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@ with this change. The overridden methods of :class:`~imaplib.IMAP4_SSL` and
205205
:class:`~imaplib.IMAP4_stream` were applied to this change.
206206
(Contributed by Dong-hee Na in :issue:`38615`.)
207207

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+
208216
math
209217
----
210218

@@ -240,52 +248,31 @@ The :func:`os.putenv` and :func:`os.unsetenv` functions are now always
240248
available.
241249
(Contributed by Victor Stinner in :issue:`39395`.)
242250

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-
269251
pathlib
270252
-------
271253

272254
Added :meth:`pathlib.Path.readlink()` which acts similarly to
273255
:func:`os.readlink`.
274256
(Contributed by Girts Folkmanis in :issue:`30618`)
275257

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+
276265
pprint
277266
------
278267

279268
:mod:`pprint` can now pretty-print :class:`types.SimpleNamespace`.
280269
(Contributed by Carl Bordum Hansen in :issue:`37376`.)
281270

282-
importlib
283-
---------
271+
signal
272+
------
284273

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`)
289276

290277
smtplib
291278
-------
@@ -297,11 +284,14 @@ a non-blocking socket. (Contributed by Dong-hee Na in :issue:`39259`.)
297284
:class:`~smtplib.LMTP` constructor now has an optional *timeout* parameter.
298285
(Contributed by Dong-hee Na in :issue:`39329`.)
299286

300-
signal
301-
------
287+
threading
288+
---------
302289

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`.)
305295

306296
typing
307297
------
@@ -311,6 +301,16 @@ types with context-specific metadata and new ``include_extras`` parameter to
311301
:func:`typing.get_type_hints` to access the metadata at runtime. (Contributed
312302
by Till Varoquaux and Konstantin Kashin.)
313303

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+
314314

315315
Optimizations
316316
=============

0 commit comments

Comments
 (0)
0