Await expressions

Liste des GroupesRevenir à cl python 
Sujet : Await expressions
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.python
Date : 26. Jan 2024, 19:36:50
Autres entêtes
Organisation : Stefan Ram
Message-ID : <await-20240126193156@ram.dialup.fu-berlin.de>
  In "The Python Language Reference, Release 3.13.0a0",
  there is this section:

|6.4 Await expression
|
|Suspend the execution of coroutine on an awaitable object.
|Can only be used inside a coroutine function.
|
|await_expr ::= "await" primary
|
|New in version 3.5.

  . And this is the whole section.

  What I do not understand:

  - Which coroutine is suspended?
  - Which object is the object mentioned?
  - For what purpose is the value of the primary expression used?
  - What does it mean to "suspend something on something"?


Date Sujet#  Auteur
26 Jan 24 * Await expressions9Stefan Ram
26 Jan 24 +* Re: Await expressions (Posting On Python-List Prohibited)3Stefan Ram
28 Jan 24 i`* Re: Await expressions2Stefan Ram
29 Jan 24 i `- Re: Await expressions1Stefan Ram
31 Jan 24 +- Re: Await expressions1Stefan Ram
1 Feb 24 `* Re: Await expressions4Stefan Ram
1 Feb 24  `* Re: Await expressions3Stefan Ram
1 Feb 24   `* Re: Await expressions2Stefan Ram
2 Feb 24    `- Re: Await expressions1Stefan Ram

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal