Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for operators (0.18 sec)

  1. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    例えば、これを使ってデータベースセッションを作成し、終了後にそれを閉じることができます。
    
    レスポンスを送信する前に`yield`文を含む前のコードのみが実行されます。
    
    ```Python hl_lines="2 3 4"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    生成された値は、*path operations*や他の依存関係に注入されるものです:
    
    ```Python hl_lines="4"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    `yield`文に続くコードは、レスポンスが送信された後に実行されます:
    
    ```Python hl_lines="5 6"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ```Python hl_lines="2-4"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    The yielded value is what is injected into *path operations* and other dependencies:
    
    ```Python hl_lines="4"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    The code following the `yield` statement is executed after the response has been delivered:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top