You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-95913: Copyedit/improve Other Language Changes What's New section (#97719)
* Add/refine cross references to items in other lang changes section
* Unify context manager exception changes into single non-repetitive item
* More clearly describe the intent and consequences of the -P option
* Apply minor clarifications & copyedits to rest of section
* Tweak the formatting of module references
Co-authored-by: Ezio Melotti <[email protected]>
Co-authored-by: Ezio Melotti <[email protected]>
Copy file name to clipboardExpand all lines: Doc/whatsnew/3.11.rst
+36-31Lines changed: 36 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -427,52 +427,57 @@ See `this message from the Steering Council <https://mail.python.org/archives/li
427
427
for more information.
428
428
429
429
430
+
.. _whatsnew311-other-lang-changes:
431
+
430
432
Other Language Changes
431
433
======================
432
434
433
-
* Starred expressions can be used in :ref:`for statements<for>`. (See
434
-
:issue:`46725` for more details.)
435
-
436
-
* Asynchronous comprehensions are now allowed inside comprehensions in
437
-
asynchronous functions. Outer comprehensions implicitly become
438
-
asynchronous. (Contributed by Serhiy Storchaka in :issue:`33346`.)
435
+
* Starred unpacking expressions can now be used in :keyword:`for` statements.
436
+
(See :issue:`46725` for more details.)
439
437
440
-
* A :exc:`TypeError` is now raised instead of an :exc:`AttributeError` in
441
-
:meth:`contextlib.ExitStack.enter_context` and
442
-
:meth:`contextlib.AsyncExitStack.enter_async_context` for objects which do not
443
-
support the :term:`context manager` or :term:`asynchronous context manager`
444
-
protocols correspondingly.
445
-
(Contributed by Serhiy Storchaka in :issue:`44471`.)
438
+
* Asynchronous :ref:`comprehensions <comprehensions>` are now allowed
439
+
inside comprehensions in :ref:`asynchronous functions <async def>`.
440
+
Outer comprehensions implicitly become asynchronous in this case.
441
+
(Contributed by Serhiy Storchaka in :issue:`33346`.)
446
442
447
443
* A :exc:`TypeError` is now raised instead of an :exc:`AttributeError` in
448
-
:keyword:`with` and :keyword:`async with` statements for objects which do not
449
-
support the :term:`context manager` or :term:`asynchronous context manager`
450
-
protocols correspondingly.
451
-
(Contributed by Serhiy Storchaka in :issue:`12022`.)
452
-
453
-
* Added :meth:`object.__getstate__` which provides the default
454
-
implementation of the ``__getstate__()`` method. :mod:`Copying <copy>`
455
-
and :mod:`pickling <pickle>` instances of subclasses of builtin types
444
+
:keyword:`with` statements and :meth:`contextlib.ExitStack.enter_context`
445
+
for objects that do not support the :term:`context manager` protocol,
0 commit comments