Results of 1 - 10 of about 33 for manager (0.008 sec.)
- email.message: 電子メールメッセージの表現 13460
- email.message : 電子メールメッセージの表現 ソースコード: Lib/email/message.py Added in version 3.6: [ 1 ] email パッケージの中心となるクラスは、 email.message モジュールからインポートする EmailMessage です。 これは email のオブジェクトモデル
...るイテレーターを返します。 multipart でなければ空になります。 ( walk() も参照してください。) get_content ( * args , content_manager = None , ** kw ) content_manager の get_content() を呼び出します。 メッセージオブジェクトとして self を渡し、他の引数やキー...ワード引数も追加の引数としてそのまま渡します。 content_manager が指定されていなければ、現在の policy で指定された content_manager を使います。 set_content ( * args , content_manager = N...one , ** kw ) content_manager の set_content() を呼び出します。 メッセージオブジェクトとして self を渡し、他の引数やキーワード引数も追加の引数としてその... - https://man.mtool.work/python/3.14/library/email.message.html
- multiprocessing --- プロセスベースの並列処理 12626
- multiprocessing --- プロセスベースの並列処理 ソースコード: Lib/multiprocessing/ 利用可能な環境 : not Android, not iOS, not WASI. このモジュールは モバイルプラットフォーム と WebAssemblyプラットフォーム をサポートしません。 はじめに multipro
...モジュールは共有メモリから割り当てられた任意の ctypes オブジェクトの生成をサポートします。 サーバープロセス (Server process) Manager() が返すマネージャーオブジェクトは、Python オブジェクトを保持するサーバープロセスを管理します。 他のプロセスはプロキシを使...って、その Python オブジェクトを操作できます。 Manager() が返すマネージャーは、 list 、 dict 、 set 、 Namespace 、 Lock 、 RLock 、 Semaphore 、 BoundedSemaphore 、 Condition 、...、 Barrier 、 Queue 、 Value 、 Array の各型をサポートします。 以下に例を示します。 from multiprocessing import Process , Manager def f ( d , l , s ): d [ 1 ] = '1' d [ '2' ] = 2 d [ 0.25 ] = None l . reverse () s . add ( 'a' ) s . add ( 'b' ) if __nam... - https://man.mtool.work/python/3.14/library/multiprocessing.html
- 4. Windows で Python を使う 11647
- 4. Windows で Python を使う このドキュメントは、 Python を Microsoft Windows で使うときに知っておくべき、 Windows 固有の動作についての概要を伝えることを目的としています。 多くの Unix システムやサービスと異なり、Windows にはシステムでサポート
...ールから Python を直接入手できるか調べることをお勧めします。 To obtain Python from the CPython team, use the Python install manager. This is a standalone tool that makes Python available as global commands on your Windows machine, integrates with the sys...tem, and supports updates over time. You can download the Python install manager from python.org/downloads or through the Microsoft Store app . Once you have installed the Python install manager, the glo...述の 埋め込み可能なパッケージ を参照してください。 4.1. Python インストールマネージャ 4.1.1. インストール The Python install manager can be installed from the Microsoft Store app or downloaded and installed from python.org/downloads . The two versions are... - https://man.mtool.work/python/3.14/using/windows.html
- unittest.mock --- 入門 9577
- unittest.mock --- 入門 Added in version 3.3. Mock を使う モックでメソッドにパッチを当てる 一般的な Mock の使い方の中には次のものがあります: メソッドにパッチを当てる オブジェクトに対するメソッド呼び出しを記録する システムの他の部分からメソッ
...on 3.8以降、 AsyncMock と MagicMock は __aenter__ と __aexit__ を通じて 非同期コンテキストマネージャ (Asynchronous Context Manager) のモックをサポートしています。デフォルトでは、 __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
- email.contentmanager: MIME コンテンツの管理 9433
- email.contentmanager : MIME コンテンツの管理 ソースコード: Lib/email/contentmanager.py Added in version 3.6: [ 1 ] class email.contentmanager. ContentManager コンテンツマネージャーの基底クラスです。 MIME コンテンツと他の表現との変換処理を登
...てください。 コンテンツマネージャーのインスタンス 現在、email パッケージが提供する具体的なコンテンツマネージャーは raw_data_manager だけですが、将来さらに追加される可能性があります。 raw_data_manager は EmailPolicy とその派生クラスが提供する content_mana...ger です。 email.contentmanager. raw_data_manager このコンテンツマネージャーが Message 自体に加えて提供するインターフェースは最小限で、テキスト、生のバイト...豊富なオプションがあります。 また、各種の add_ メソッドを利用でき、マルチパートメッセージを簡単に作成できます。 email.contentmanager. get_content ( msg , errors = 'replace' ) Return the payload of the part as either a string (for text parts), an EmailMess... - https://man.mtool.work/python/3.14/library/email.contentmanager.html
- メモリ管理 8743
- メモリ管理 概要 Python におけるメモリ管理には、全ての Python オブジェクトとデータ構造が入ったプライベートヒープ (private heap) が必須です。プライベートヒープの管理は、内部的には Python メモリマネージャ (Python memory manager) が確実に行いま
...recommended to allocate memory from the Python heap specifically because the latter is under control of the Python memory manager. For example, this is required when the interpreter is extended with new object types written in C. Another reason for usi...ng the Python heap is the desire to inform the Python memory manager about the memory needs of the extension module. Even when the requested memory is used exclusively for internal, highly sp...ecific purposes, delegating all memory requests to the Python memory manager causes the interpreter to have a more accurate image of its memory footprint as a whole. Consequently, under certain circu... - https://man.mtool.work/python/3.14/c-api/memory.html
- 8. 複合文 (compound statement) 8599
- 8. 複合文 (compound statement) 複合文には、他の文 (のグループ) が入ります; 複合文は、中に入っている他の文の実行の制御に何らかのやり方で影響を及ぼします。一般的には、複合文は複数行にまたがって書かれますが、全部の文を一行に連ねた単純な書き方も
...行は発生した終了の種類に応じた通常の位置から継続します。 以下のコード: with EXPRESSION as TARGET : SUITE これは次と等価です: manager = ( EXPRESSION ) enter = manager . __enter__ exit = manager . __exit__ value = enter () hit_except = False try : TARGET =...for 文を使用すると SyntaxError になります。 8.9.3. async with 文 async_with_stmt : "async" with_stmt asynchronous context manager は、 enter メソッドと exit メソッド内部で実行を一時停止できる context manager です。 以下のコード: async with EXPRESSION a...s TARGET : SUITE これは次と等価です: manager = ( EXPRESSION ) aenter = manager . __aenter__ aexit = manager . __aexit__ value = await aenter () hit_except = False try... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- contextlib --- with 文コンテキスト用ユーティリティ 8053
- contextlib --- with 文コンテキスト用ユーティリティ ソースコード: Lib/contextlib.py このモジュールは with 文に関わる一般的なタスクのためのユーティリティを提供します。詳しい情報は、 コンテキストマネージャ型 と with文とコンテキストマネージャ を
...参照してください。 ユーティリティ 以下の関数とクラスを提供しています: class contextlib. AbstractContextManager __enter__() と __exit__() を実装するクラスのための abstract base class です。 __enter__() には self を返すデフォルトの実装...ソッドです。 コンテキストマネージャ型 の定義も参照してください。 Added in version 3.6. class contextlib. AbstractAsyncContextManager __aenter__() と __aexit__() を実装するクラスのための abstract base class です。 __aenter__() には self を返すデフォルトの実...装があり、 __aexit__() はデフォルトで None を返す抽象メソッドです。 非同期コンテキストマネージャ (Asynchronous Context Manager) の定義も参照してください。 Added in version 3.7. @ contextlib. contextmanager この関数は with 文コンテキストマネージャのフ... - https://man.mtool.work/python/3.14/library/contextlib.html
- Pythonモジュール索引 8053
- Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i
...ces to various Unix "database" formats. dbm.dumb Portable implementation of the simple DBM interface. dbm.gnu GNU database manager dbm.ndbm The New Database Manager dbm.sqlite3 SQLite backend for dbm decimal Implementation of the General Decimal Arithme...ail Package supporting the parsing, manipulating, and generating email messages. email.charset Character Sets email.contentmanager Storing and Retrieving Content from MIME Parts email.encoders Encoders for email message payloads. email.errors The except...tiprocessing.connection API for dealing with sockets. multiprocessing.dummy Dumb wrapper around threading. multiprocessing.managers Share data between process with shared objects. multiprocessing.pool Create pools of processes. multiprocessing.shared_me... - https://man.mtool.work/python/3.14/py-modindex.html
- email.policy: ポリシーオブジェクト 7909
- email.policy : ポリシーオブジェクト Added in version 3.3. ソースコード: Lib/email/policy.py email パッケージの主な目的は、メールや MIME に関する各種 RFC に従ってメールメッセージを扱うことです。 しかし、メールの一般的な形式はメール以外の用途
...主要な MIME ヘッダフィールドに応じた解析をサポートしています。 今後、さらに独自の解析への対応が追加される予定です。 content_manager 少なくとも get_content と set_content の 2 つのメソッドを持つオブジェクトです。 EmailMessage オブジェクトの get_content()...メッセージオブジェクトを渡し、元の呼び出しで渡された引数やキーワード引数を追加の引数として渡します。 デフォルトでは content_manager は raw_data_manager に設定されています。 Added in version 3.4. このクラスは Policy の抽象メソッドの具象実装を提供します: h... - https://man.mtool.work/python/3.14/library/email.policy.html