Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 18 of 18 for __iter__ (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

    Esto es, más o menos, una idea "avanzada".
    
    Si apenas estás comenzando con **FastAPI**, podrías querer omitirlo por ahora.
    
    ///
    
    En Python, puedes crear Context Managers [creando una clase con dos métodos: `__enter__()` y `__exit__()`](https://docs.python.org/3/reference/datamodel.html#context-managers).
    
    También puedes usarlos dentro de las dependencias de **FastAPI** con `yield` usando
    `with` o `async with` en la función de dependencia:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/tutorial/dependencies/dependencies-with-yield.md

    ### 在含 `yield` 的相依中使用情境管理器 { #using-context-managers-in-dependencies-with-yield }
    
    /// warning
    
    這大致算是一個「進階」概念。
    
    如果你剛開始學習 **FastAPI**,此處可以先跳過。
    
    ///
    
    在 Python 中,你可以透過[建立一個擁有 `__enter__()` 與 `__exit__()` 兩個方法的類別](https://docs.python.org/3/reference/datamodel.html#context-managers)來建立情境管理器。
    
    你也可以在 **FastAPI** 的含 `yield` 相依中,於相依函式內使用 `with` 或 `async with` 陳述式來使用它們:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    This is, more or less, an "advanced" idea.
    
    If you are just starting with **FastAPI** you might want to skip it for now.
    
    ///
    
    In Python, you can create Context Managers by [creating a class with two methods: `__enter__()` and `__exit__()`](https://docs.python.org/3/reference/datamodel.html#context-managers).
    
    You can also use them inside of **FastAPI** dependencies with `yield` by using
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    ### 在带有 `yield` 的依赖中使用上下文管理器 { #using-context-managers-in-dependencies-with-yield }
    
    /// warning | 警告
    
    这算是一个“高级”概念。
    
    如果你刚开始使用 **FastAPI**,现在可以先跳过。
    
    ///
    
    在 Python 中,你可以通过[创建一个带有 `__enter__()` 和 `__exit__()` 方法的类](https://docs.python.org/3/reference/datamodel.html#context-managers)来创建上下文管理器。
    
    你也可以在 **FastAPI** 的带有 `yield` 的依赖中,使用依赖函数内部的 `with` 或 `async with` 语句来使用它们:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  5. docs/pt/docs/tutorial/dependencies/dependencies-with-yield.md

    Se você está apenas iniciando com o **FastAPI** você pode querer pular isso por enquanto.
    
    ///
    
    Em Python, você pode criar Gerenciadores de Contexto ao [criar uma classe com dois métodos: `__enter__()` e `__exit__()`](https://docs.python.org/3/reference/datamodel.html#context-managers).
    
    Você também pode usá-los dentro de dependências com `yield` do **FastAPI** ao utilizar
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 13.8K bytes
    - Click Count (0)
  6. docs/ko/docs/tutorial/dependencies/dependencies-with-yield.md

    /// warning
    
    이것은 어느 정도 "고급" 개념입니다.
    
    **FastAPI**를 처음 시작하는 경우 지금은 이 부분을 건너뛰어도 좋습니다.
    
    ///
    
    Python에서는 [두 가지 메서드: `__enter__()`와 `__exit__()`가 있는 클래스를 생성하여](https://docs.python.org/3/reference/datamodel.html#context-managers) 컨텍스트 관리자를 만들 수 있습니다.
    
    **FastAPI**의 `yield`가 있는 의존성 내에서
    `with` 또는 `async with`문을 사용하여 이들을 활용할 수 있습니다:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  7. docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md

    /// warning | 注意
    
    これは多かれ少なかれ、「高度な」発想です。
    
    **FastAPI** を使い始めたばかりの方は、とりあえずスキップした方がよいかもしれません。
    
    ///
    
    Pythonでは、[以下の2つのメソッドを持つクラスを作成する: `__enter__()`と`__exit__()`](https://docs.python.org/3/reference/datamodel.html#context-managers)ことでコンテキストマネージャを作成することができます。
    
    また、依存関数の中で`with`や`async with`文を使用することによって`yield`を持つ **FastAPI** の依存関係の中でそれらを使用することができます:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 15.4K bytes
    - Click Count (0)
  8. fastapi/routing.py

                                data_str=_serialize_data(item).decode("utf-8")
                            )
    
                    if dependant.is_async_gen_callable:
                        sse_aiter: AsyncIterator[Any] = gen.__aiter__()
                    else:
                        sse_aiter = iterate_in_threadpool(gen)
    
                    @asynccontextmanager
                    async def _sse_producer_cm() -> AsyncIterator[
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
Back to Top