per page, with , order by , clip by
Results of 1 - 10 of about 514 for method (0.060 sec.)
変更履歴 — Python 3.14.8 ドキュメント 8155
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac ... cter precedes the invalid byte on the same line. Patch by Shamil Abdulaev. gh-156762 : Fix undefined behaviour in operator.methodcaller : its tp_clear slot function returned void instead of int , so the garbage collector called it through an incompatib ... object during the assignment. gh-157406 : Fix the Python implementation of xml.etree.ElementTree.XMLParser : the doctype() method of the target is now called for a document type declaration without an external identifier, like <!DOCTYPE html> , as in t ... crash in the ISO-2022 decoders when decoding a byte after an unknown charset designation is set via the decoder's setstate method. Patch by tonghuaroot. gh-153539 : Fix a crash in the C implementation of io.TextIOWrapper.tell() when the decoder's getst ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
unittest.mock --- 入門 — Python 3.14.8 ドキュメント 7447
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p ... atching methods ¶ 一般的な Mock の使い方の中には次のものがあります: メソッドにパッチを当てる オブジェクトに対するメソッド呼び出しを記録す ... び出されたかどうかを確認するために、そのオブジェクトのメソッドを置き換えることができます: >>> real = SomeClass () >>> real . method = MagicMock ( name = 'method' ) >>> real . method ( 3 , 4 , 5 , key = 'value' ) <MagicMock name='method()' id='...'> モック ... (上の例では real.method )が利用された場合、どう使われたかを assert できるようにする属性やメソッドがモックにあります。 注釈 この例のような場合、たい ...
https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
unittest.mock --- 入門 — Python 3.14.8 ドキュメント 7447
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- 入門 テーマ 自動 ライト ダーク | unittest.mock --- 入門 ¶ Added in version 3.3. Mock を使う ¶ Mock p ... atching methods ¶ 一般的な Mock の使い方の中には次のものがあります: メソッドにパッチを当てる オブジェクトに対するメソッド呼び出しを記録す ... び出されたかどうかを確認するために、そのオブジェクトのメソッドを置き換えることができます: >>> real = SomeClass () >>> real . method = MagicMock ( name = 'method' ) >>> real . method ( 3 , 4 , 5 , key = 'value' ) <MagicMock name='method()' id='...'> モック ... (上の例では real.method )が利用された場合、どう使われたかを assert できるようにする属性やメソッドがモックにあります。 注釈 この例のような場合、たい ...
https://man.mtool.work/python/3.14/library/unittest.mock-examples.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 7385
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes ... よう使用されたかについてアサートできます: >>> from unittest.mock import MagicMock >>> thing = ProductionClass () >>> thing . method = MagicMock ( return_value = 3 ) >>> thing . method ( 3 , 4 , 5 , key = 'value' ) 3 >>> thing . method . assert_called_wit ... tch() デコレータと同様に with 文でコンテキストマネージャーとして使用できます: >>> with patch . object ( ProductionClass , 'method' , return_value = None ) as mock_method : ... thing = ProductionClass () ... thing . method ( 1 , 2 , 3 ) ... >>> mock_met ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 7385
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes ... よう使用されたかについてアサートできます: >>> from unittest.mock import MagicMock >>> thing = ProductionClass () >>> thing . method = MagicMock ( return_value = 3 ) >>> thing . method ( 3 , 4 , 5 , key = 'value' ) 3 >>> thing . method . assert_called_wit ... tch() デコレータと同様に with 文でコンテキストマネージャーとして使用できます: >>> with patch . object ( ProductionClass , 'method' , return_value = None ) as mock_method : ... thing = ProductionClass () ... thing . method ( 1 , 2 , 3 ) ... >>> mock_met ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
3. データモデル — Python 3.14.8 ドキュメント 7353
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da ... is not guaranteed to happen, such objects also provide an explicit way to release the external resource, usually a close() method. Programs are strongly recommended to explicitly close such objects. The try ... finally statement and the with statement ... alue. There is a single object with this value. This object is accessed through the built-in name NotImplemented . Numeric methods and rich comparison methods should return this value if they do not implement the operation for the operands provided. (T ... in bytes() constructor can be used to create bytes objects. Also, bytes objects can be decoded to strings via the decode() method. 3.2.5.2. 変更可能なシーケンス型 (mutable sequence) ¶ 変更可能なシーケンスは、作成した後で変更することができます。変更可能 ...
https://man.mtool.work/python/3.14/reference/datamodel.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 7259
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... lts. Process クラス ¶ In multiprocessing , processes are spawned by creating a Process object and then calling its start() method. Process follows the API of threading.Thread . A trivial example of a multiprocess program is from multiprocessing import ... e. コンテキストと開始方式 ¶ Depending on the platform, multiprocessing supports three ways to start a process. These start methods are spawn 親プロセスは新たに Python インタープリタープロセスを開始します。子プロセスはプロセスオブジェクトの run() メソッ ... に問題があることに注意してください。 Available on POSIX systems. バージョン 3.14 で変更: This is no longer the default start method on any platform. Code that requires fork must explicitly specify that via get_context() or set_start_method() . バージョン ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 7220
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... lts. Process クラス ¶ In multiprocessing , processes are spawned by creating a Process object and then calling its start() method. Process follows the API of threading.Thread . A trivial example of a multiprocess program is from multiprocessing import ... e. コンテキストと開始方式 ¶ Depending on the platform, multiprocessing supports three ways to start a process. These start methods are spawn 親プロセスは新たに Python インタープリタープロセスを開始します。子プロセスはプロセスオブジェクトの run() メソッ ... に問題があることに注意してください。 Available on POSIX systems. バージョン 3.14 で変更: This is no longer the default start method on any platform. Code that requires fork must explicitly specify that via get_context() or set_start_method() . バージョン ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
3. データモデル — Python 3.14.8 ドキュメント 7031
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 3. データモデル テーマ 自動 ライト ダーク | 3. データモデル ¶ 3.1. オブジェクト、値、および型 ¶ Objects are Python's abstraction for da ... is not guaranteed to happen, such objects also provide an explicit way to release the external resource, usually a close() method. Programs are strongly recommended to explicitly close such objects. The try ... finally statement and the with statement ... alue. There is a single object with this value. This object is accessed through the built-in name NotImplemented . Numeric methods and rich comparison methods should return this value if they do not implement the operation for the operands provided. (T ... in bytes() constructor can be used to create bytes objects. Also, bytes objects can be decoded to strings via the decode() method. 3.2.5.2. 変更可能なシーケンス型 (mutable sequence) ¶ 変更可能なシーケンスは、作成した後で変更することができます。変更可能 ...
https://man.mtool.work/python/3.14/reference/datamodel.html
dataclasses --- データクラス — Python 3.14.8 ドキュメント 6646
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » dataclasses --- データクラス テーマ 自動 ライト ダーク | dataclasses --- データクラス ¶ ソースコード: L ... False , weakref_slot = False ) class C : ... The parameters to @dataclass are: init : If true (the default), a __init__() method will be generated. If the class already defines __init__() , this parameter is ignored. repr : If true (the default), a __ ... repr__() method will be generated. The generated repr string will have the class name and the name and repr of each field, in the order th ... on_hand=10) . If the class already defines __repr__() , this parameter is ignored. eq : If true (the default), an __eq__() method will be generated. This method compares the class by comparing each field in order. Both instances in the comparison must ...
https://man.mtool.work/python/3.14/library/dataclasses.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT