Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for 35 (0.23 sec)

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

    Auf die gleiche Weise können Sie `finally` verwenden, um sicherzustellen, dass die Exit-Schritte ausgeführt werden, unabhängig davon, ob eine Exception geworfen wurde oder nicht.
    
    ```Python hl_lines="3  5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    ## Unterabhängigkeiten mit `yield`.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:10:29 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    そのため、依存関係の中にある特定の例外を`except SomeException`で探すことができます。
    
    同様に、`finally`を用いて例外があったかどうかにかかわらず、終了ステップを確実に実行することができます。
    
    ```Python hl_lines="3 5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    ## `yield`を持つサブ依存関係
    
    任意の大きさや形のサブ依存関係やサブ依存関係の「ツリー」を持つことができ、その中で`yield`を使用することができます。
    
    **FastAPI** は、`yield`を持つ各依存関係の「終了コード」が正しい順番で実行されていることを確認します。
    
    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)
  3. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    Таким же образом можно использовать `finally`, чтобы убедиться, что обязательные шаги при выходе выполнены, независимо от того, было ли исключение или нет.
    
    ```Python hl_lines="3  5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    ## Подзависимости с `yield`
    
    Вы можете иметь подзависимости и "деревья" подзависимостей любого размера и формы, и любая из них или все они могут использовать `yield`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 04:21:06 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    例如,如果中间某个代码在另一个依赖中或在*路径操作*中使数据库事务 "回滚 "或产生任何其他错误,您就会在依赖中收到异常。
    
    因此,你可以使用 `except SomeException` 在依赖关系中查找特定的异常。
    
    同样,您也可以使用 `finally` 来确保退出步骤得到执行,无论是否存在异常。
    
    ```Python hl_lines="3  5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    ## 使用`yield`的子依赖项
    
    你可以拥有任意大小和形状的子依赖和子依赖的“树”,而且它们中的任何一个或所有的都可以使用`yield`。
    
    **FastAPI** 会确保每个带有`yield`的依赖中的“退出代码”按正确顺序运行。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  5. docs/en/data/people.yml

    - login: STeveShary
      count: 37
      avatarUrl: https://avatars.githubusercontent.com/u/5167622?u=de8f597c81d6336fcebc37b32dfd61a3f877160c&v=4
      url: https://github.com/STeveShary
    - login: krishnardt
      count: 35
      avatarUrl: https://avatars.githubusercontent.com/u/31960541?u=47f4829c77f4962ab437ffb7995951e41eeebe9b&v=4
      url: https://github.com/krishnardt
    - login: panla
      count: 32
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 22:21:11 GMT 2024
    - 57.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    In the same way, you can use `finally` to make sure the exit steps are executed, no matter if there was an exception or not.
    
    ```Python hl_lines="3  5"
    {!../../../docs_src/dependencies/tutorial007.py!}
    ```
    
    ## Sub-dependencies with `yield`
    
    You can have sub-dependencies and "trees" of sub-dependencies of any size and shape, and any or all of them can use `yield`.
    
    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)
  7. docs/en/docs/release-notes.md

    * Add new `HTTPException` with support for custom headers. With new documentation for handling errors at: [https://fastapi.tiangolo.com/tutorial/handling-errors/](https://fastapi.tiangolo.com/tutorial/handling-errors/). PR [#35](https://github.com/tiangolo/fastapi/pull/35).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  8. docs/en/docs/tutorial/sql-databases.md

    In the `Config` class, set the attribute `orm_mode = True`.
    
    === "Python 3.10+"
    
        ```Python hl_lines="13  17-18  29  34-35"
        {!> ../../../docs_src/sql_databases/sql_app_py310/schemas.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="15  19-20  31  36-37"
        {!> ../../../docs_src/sql_databases/sql_app_py39/schemas.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 29.6K bytes
    - Viewed (0)
Back to top