per page, with , order by , clip by
Results of 1 - 10 of about 14 for asynccontextmanager (0.040 sec.)
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 12953
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... fault returns None . See also the definition of コンテキストマネージャ型 . Added in version 3.6. class contextlib. AbstractAsyncContextManager ¶ An abstract base class for classes that implement __aenter__() and __aexit__() . A default implementation for __aenter__ ... rt multiple invocations in order to be used as decorators). バージョン 3.2 で変更: ContextDecorator の使用。 @ contextlib. asynccontextmanager ¶ Similar to @~contextlib.contextmanager , but creates an asynchronous context manager . この関数は async with 文のための非 ... デコレータは非同期ジェネレータ ( asynchronous generator ) 関数に適用しなければなりません。 簡単な例: from contextlib import asynccontextmanager @asynccontextmanager async def get_connection (): conn = await acquire_db_connection () try : yield conn finally : await r ...
https://man.mtool.work/python/3.14/library/contextlib.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 12953
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... fault returns None . See also the definition of コンテキストマネージャ型 . Added in version 3.6. class contextlib. AbstractAsyncContextManager ¶ An abstract base class for classes that implement __aenter__() and __aexit__() . A default implementation for __aenter__ ... rt multiple invocations in order to be used as decorators). バージョン 3.2 で変更: ContextDecorator の使用。 @ contextlib. asynccontextmanager ¶ Similar to @~contextlib.contextmanager , but creates an asynchronous context manager . この関数は async with 文のための非 ... デコレータは非同期ジェネレータ ( asynchronous generator ) 関数に適用しなければなりません。 簡単な例: from contextlib import asynccontextmanager @asynccontextmanager async def get_connection (): conn = await acquire_db_connection () try : yield conn finally : await r ...
https://man.mtool.work/python/3.14/library/contextlib.html
索引 — Python 3.14.8 ドキュメント 8682
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc ... ort (__future__ モジュール) AbsoluteLinkError AbsolutePathError abspath() (os.path モジュール) abstract base class AbstractAsyncContextManager (contextlib のクラス) AbstractBasicAuthHandler (urllib.request のクラス) abstractclassmethod() (abc モジュール) AbstractCo ... async def statement async for in comprehensions statement async with statement AsyncContextDecorator (contextlib のクラス) AsyncContextManager (typing のクラス) asynccontextmanager() (contextlib モジュール) AsyncExitStack (contextlib のクラス) AsyncFor (ast のクラス ...
https://man.mtool.work/python/3.14/genindex-A.html
索引 — Python 3.14.8 ドキュメント 8682
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc ... ort (__future__ モジュール) AbsoluteLinkError AbsolutePathError abspath() (os.path モジュール) abstract base class AbstractAsyncContextManager (contextlib のクラス) AbstractBasicAuthHandler (urllib.request のクラス) abstractclassmethod() (abc モジュール) AbstractCo ... async def statement async for in comprehensions statement async with statement AsyncContextDecorator (contextlib のクラス) AsyncContextManager (typing のクラス) asynccontextmanager() (contextlib モジュール) AsyncExitStack (contextlib のクラス) AsyncFor (ast のクラス ...
https://man.mtool.work/python/3.14/genindex-A.html
unittest.mock --- 入門 — Python 3.14.8 ドキュメント 8297
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p ... ックをサポートしています。デフォルトでは、 __aenter__ と __aexit__ は非同期関数を返す AsyncMock インスタンスです。 >>> class AsyncContextManager : ... async def __aenter__ ( self ): ... return self ... async def __aexit__ ( self , exc_type , exc , tb ): ... pass ... ... >>> mock_instance = MagicMock ( AsyncContextManager ()) # AsyncMock also works here >>> async def main (): ... async with mock_instance as result : ... pass ... >>> asyncio . ...
https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
unittest.mock --- 入門 — Python 3.14.8 ドキュメント 8297
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p ... ックをサポートしています。デフォルトでは、 __aenter__ と __aexit__ は非同期関数を返す AsyncMock インスタンスです。 >>> class AsyncContextManager : ... async def __aenter__ ( self ): ... return self ... async def __aexit__ ( self , exc_type , exc , tb ): ... pass ... ... >>> mock_instance = MagicMock ( AsyncContextManager ()) # AsyncMock also works here >>> async def main (): ... async with mock_instance as result : ... pass ... >>> asyncio . ...
https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
変更履歴 — Python 3.14.8 ドキュメント 8122
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... behaviour on Python 3.12 or newer.) gh-118660 : Add an optional second type parameter to typing.ContextManager and typing.AsyncContextManager , representing the return types of __exit__() and __aexit__() respectively. This parameter defaults to bool | None . gh-11 ... " for decimal.Decimal . It was not documented and only supported in the C implementation. gh-110378 : contextmanager() and asynccontextmanager() context managers now close an invalid underlying generator object that yields more then one value. gh-106670 : In pdb , ... import of pprint from sysconfig . gh-105726 : Added __slots__ to contextlib.AbstractContextManager and contextlib.AbstractAsyncContextManager so that child classes can use __slots__ . gh-106774 : Update the bundled copy of pip to version 23.2.1. gh-106751 : select ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
索引 — Python 3.14.8 ドキュメント 7929
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | 索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | イ | エ | オ | カ | キ ... ort (__future__ モジュール) AbsoluteLinkError AbsolutePathError abspath() (os.path モジュール) abstract base class AbstractAsyncContextManager (contextlib のクラス) AbstractBasicAuthHandler (urllib.request のクラス) abstractclassmethod() (abc モジュール) AbstractCo ... async def statement async for in comprehensions statement async with statement AsyncContextDecorator (contextlib のクラス) AsyncContextManager (typing のクラス) asynccontextmanager() (contextlib モジュール) AsyncExitStack (contextlib のクラス) AsyncFor (ast のクラス ...
https://man.mtool.work/python/3.14/genindex-all.html
索引 — Python 3.14.8 ドキュメント 7754
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | 索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | イ | エ | オ | カ | キ ... ort (__future__ モジュール) AbsoluteLinkError AbsolutePathError abspath() (os.path モジュール) abstract base class AbstractAsyncContextManager (contextlib のクラス) AbstractBasicAuthHandler (urllib.request のクラス) abstractclassmethod() (abc モジュール) AbstractCo ... async def statement async for in comprehensions statement async with statement AsyncContextDecorator (contextlib のクラス) AsyncContextManager (typing のクラス) asynccontextmanager() (contextlib モジュール) AsyncExitStack (contextlib のクラス) AsyncFor (ast のクラス ...
https://man.mtool.work/python/3.14/genindex-all.html
typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 7754
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース ... エイリアス型 を参照してください。 バージョン 3.13 で変更: Added the optional second type parameter, ExitT_co . class typing. AsyncContextManager ( Generic[T_co, AExitT_co] ) ¶ contextlib.AbstractAsyncContextManager の非推奨なエイリアス。 The first type parameter, T_c ... epresents the type returned by the __aexit__() method. Added in version 3.6.2. バージョン 3.9 で非推奨: contextlib.AbstractAsyncContextManager は添字表記 ( [] ) をサポートするようになりました。 PEP 585 と ジェネリックエイリアス型 を参照してください。 バージョン 3.1 ...
https://man.mtool.work/python/3.14/library/typing.html
PREV 1 2 NEXT