Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for failed (0.26 sec)

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

    # 🔗 ⏎ī¸ 🌾
    
    FastAPI 🐕‍đŸĻē 🔗 👈 <abbr title='sometimes also called "exit", "cleanup", "teardown", "close", "context managers", ...'>➕ 🔁 ⏎ī¸ 🏁</abbr>.
    
    👉, ⚙ī¸ `yield` ↩ī¸ `return`, &amp; ✍ ➕ 🔁 ⏎ī¸.
    
    !!! tip
        ⚒ 💭 ⚙ī¸ `yield` 1ī¸âƒŖ 👁 🕰.
    
    !!! note "📡 ℹ"
        🙆 đŸ”ĸ 👈 ☑ ⚙ī¸ ⏎ī¸:
    
        * <a href="https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager" class="external-link" target="_blank">`@contextlib.contextmanager`</a> ⚖ī¸
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    Underneath, the `open("./somefile.txt")` creates an object that is called a "Context Manager".
    
    When the `with` block finishes, it makes sure to close the file, even if there were exceptions.
    
    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