Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 35 for spec (0.094 sec.)
26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 13748
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ックには多くの設定法や挙動の制御法があります。例えば spec 引数によって別のオブジェクトからの仕様を受け取るよ ... う設定できます。 spec にないモックの属性やメソッドにアクセスを試みた場合 ... ブジェクトと同じ API を持つことを保証するには、 auto-speccing を使うことができます。パッチをあてる autospec ... 引数、または create_autospec() 関数を通じて auto-speccing は行われます。 auto-s ...
https://man.plustar.jp/python/library/unittest.mock.html - [similar]
5. インポートシステム — Python 3.6.5 ドキュメント 12475
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... たモジュールが見つかった場合、ファインダーは module spec (モジュール仕様)、すなわちモジュールのインポート関 ... ョンの) ターゲットモジュールの 3 つの引数を取る find_spec() という名前のメソッドが実装されていなければいけま ... たモジュールの扱い方を知っている場合は、ファインダは spec オブジェクトを返します。指定されたモジュールを扱え ... 合は None を返します。 sys.meta_path に対する処理が spec を返さずにリストの末尾に到達してしまった場合は、 M ...
https://man.plustar.jp/python/reference/import.html - [similar]
31.5. importlib --- import の実装 — Python 3.6.5 ドキュメント 11616
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 考 import 文 import 文の言語リファレンス。 Packages specification パッケージの元の仕様。幾つかの動作はこの仕 ... パッケージ PEP 451 インポートシステムのための ModuleSpec 型 PEP 488 PYO ファイルの撤廃 PEP 489 複数フェーズ ... ージョン 3.4 で非推奨: 代わりに importlib.util.find_spec() を使用してください。 importlib. invalidate_cache ... nder +-- Loader +-- ResourceLoader --------+ +-- InspectLoader | +-- ExecutionLoader --+ +-- FileLoader +- ...
https://man.plustar.jp/python/library/importlib.html - [similar]
31.4. runpy --- Python モジュールの位置特定と実行 — Python 3.6.5 ドキュメント 9850
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ーライドされます。 特別なグローバル変数 __name__ , __spec__ , __file__ , __cached__ , __loader__ , __package ... そうでなければ mod_name 引数の値がセットされます。 __spec__ will be set appropriately for the actually impor ... ted module (that is, __spec__.name will always be mod_name or mod_name + '.__m ... __package__ are set as normal based on the module spec. 引数 alter_sys が与えられて True に評価されるなら ...
https://man.plustar.jp/python/library/runpy.html - [similar]
5. ビルド済み配布物を作成する — Python 3.6.5 ドキュメント 8895
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの ... ているのとほとんど同じく、 RPM パッケージの作成は、 .spec で制御されています。 RPM の作成を簡便に解決するため ... ンドライン、そして Distutils 設定ファイルに基づいて .spec ファイルを作成します。 .spec ファイルの様々なオプシ ... ようにして setup スクリプトから取り出されます: RPM .spec ファイルのオプションまたはセクション Distutils set ... rl %description (section) long_description また、 .spec ファイル内の多くのオプションは、 setup スクリプト中 ...
https://man.plustar.jp/python/distutils/builtdist.html - [similar]
型オブジェクト — Python 3.6.5 ドキュメント 8688
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... を返して例外情報を設定します。 PyObject * PyType_FromSpec ( PyType_Spec *spec ) ¶ 関数引数に与えられた spec ... オブジェクトを作って返します。 PyObject * PyType_FromSpecWithBases ( PyType_Spec *spec , PyObject *bases ) ¶ ... spec からヒープタイプのオブジェクトを生成して返します。 ...
https://man.plustar.jp/python/c-api/type.html - [similar]
21.16. nntplib --- NNTP プロトコルクライアント — Python 3.6.5 ドキュメント 8640
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... istening at port port . An optional timeout can be specified for the socket connection. If the optional us ... ver on the local machine and intend to call reader-specific commands, such as group . If you get unexpecte ... nown. This command can return very large results, especially if group_pattern is not specified. It is best ... command, where grouppattern is a wildmat string as specified in RFC 3977 (it's essentially the same as DOS ...
https://man.plustar.jp/python/library/nntplib.html - [similar]
6.1. string --- 一般的な文字列操作 — Python 3.6.5 ドキュメント 8338
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 査し、タプル、 ( literal_text , field_name , format_spec , conversion ) のイテラブルを返します。これは vfor ... す。置換フィールドが無い場合は、 field_name , format_spec および conversion が None となります。 get_field ( ... るものとみなされます。 format_field ( value , format_spec ) ¶ format_field() は単純に組み込みのグローバル関数 ... = "{" [ field_name ] ["!" conversion ] [":" format_spec ] "}" field_name ::= arg_name ("." attribute_name ...
https://man.plustar.jp/python/library/string.html - [similar]
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 8035
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ているのにテストは通る状態になってしまいます Mock は spec というキーワード引数で mock の定義となるオブジェク ... 、テストを失敗させる事ができます。 >>> mock = Mock ( spec = SomeClass ) >>> mock . old_method () Traceback ( ... ror : object has no attribute 'old_method' Using a specification also enables a smarter matching of calls ... >> def f ( a , b , c ): pass ... >>> mock = Mock ( spec = f ) >>> mock ( 1 , 2 , 3 ) <Mock name='mock()' i ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
19.1.6. email.headerregistry: カスタムヘッダーオブジェクト — Python 3.6.5 ドキ... 7988
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... UnstructuredHeader as their other base class. The specialized second class for a header is determined by ... e for this attribute is None ; it is expected that specialized header classes will override this value as ... e a header object. It defines a protocol that each specialized header cooperates with in order to produce ... the header object. Specifically, BaseHeader requires that the specialized ...
https://man.plustar.jp/python/library/email.headerregistry.html - [similar]
PREV 1 2 3 4 NEXT