Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 103 for create (0.106 sec.)
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 8571
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... nse = self . backend . get_endpoint ( 'foobar' ) . create_call ( 'spam' , 'eggs' ) . start_call () ... # mor ... きます: mock_backend . get_endpoint . return_value . create_call . return_value . start_call . return_value = ... Mock () >>> config = { 'get_endpoint.return_value.create_call.return_value.start_call.return_value' : mock_ ... : >>> chained = call . get_endpoint ( 'foobar' ) . create_call ( 'spam' , 'eggs' ) . start_call () >>> call_ ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
19.1.8. email: 使用例 — Python 3.6.5 ドキュメント 7952
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ッセージについても扱います。 First, let's see how to create and send a simple text message (both the text cont ... file for reading. with open ( textfile ) as fp : # Create a text/plain message msg = EmailMessage () msg . s ... e'll need from email.message import EmailMessage # Create the container email message. msg = EmailMessage () ... s . directory if not directory : directory = '.' # Create the message msg = EmailMessage () msg [ 'Subject' ...
https://man.plustar.jp/python/library/email.examples.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 7745
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... ュールです: import logging import auxiliary_module # create logger with 'spam_application' logger = logging . ... ication' ) logger . setLevel ( logging . DEBUG ) # create file handler which logs even debug messages fh = l ... ( 'spam.log' ) fh . setLevel ( logging . DEBUG ) # create console handler with a higher log level ch = loggi ... reamHandler () ch . setLevel ( logging . ERROR ) # create formatter and add it to the handlers formatter = l ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
31.5. importlib --- import の実装 — Python 3.6.5 ドキュメント 7642
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ローダーの厳密な定義は PEP 302 を参照してください。 create_module ( spec ) ¶ モジュールをインポートする際に使 ... いる必要があります。 このメソッドが存在するときは、 create_module() の定義が必須です。 バージョン 3.4 で追加. ... バージョン 3.6 で変更: create_module() の定義が必須となりました。 load_module ( ... するための推奨される API は、 exec_module() (および create_module() ) です。ローダーは load_module() の代わり ...
https://man.plustar.jp/python/library/importlib.html - [similar]
What's New In Python 3.5 — Python 3.6.5 ドキュメント 7539
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... sk を便利に作成しスケジュールするための新たな loop.create_task() 。 create_task メソッドは コルーチンをタスク ... () methods to customize the task factory that loop.create_task() method uses. (Contributed by Yury Selivanov ... g or closed. (Contributed by Yury Selivanov.) loop.create_server() メソッドはホストのリストを受け取れるように ... ted by Yann Sionneau.) 3.5.2 での変更: 新しい loop.create_future() メソッドで Future オブジェクトが作成できる ...
https://man.plustar.jp/python/whatsnew/3.5.html - [similar]
19.4. mailbox --- 様々な形式のメールボックス操作 — Python 3.6.5 ドキュメント 7435
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... class mailbox. Maildir ( dirname , factory=None , create=True ) ¶ Maildir 形式のメールボックスのための Mail ... age がデフォルトのメッセージ表現として使われます。 create が True ならばメールボックスが存在しないときには作 ... mbox ¶ class mailbox. mbox ( path , factory=None , create=True ) ¶ mbox 形式のメールボックスのための Mailbox ... age がデフォルトのメッセージ表現として使われます。 create が True ならばメールボックスが存在しないときには作 ...
https://man.plustar.jp/python/library/mailbox.html - [similar]
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 7332
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... m_name = "custom" , . m_doc = "Example module that creates an extension type." , . m_size = -1 , }; PyMODINI ... ( & CustomType ) < 0 ) return NULL ; m = PyModule_Create ( & custommodule ); if ( m == NULL ) return NULL ; ... s also make the type usable as a base class. We'll create a new module, custom2 that adds these capabilities ... _name = "custom2" , . m_doc = "Example module that creates an extension type." , . m_size = -1 , }; PyMODINI ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
18.2. ssl --- ソケットオブジェクトに対する TLS/SSL ラッパー — Python 3.6.5 ドキ... 7229
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ontext オブジェクトを作成するのに役立ちます。 ssl. create_default_context ( purpose=Purpose.SERVER_AUTH , ca ... らば、これをこのように再有効化できます: ctx = ssl . create_default_context ( Purpose . CLIENT_AUTH ) ctx . op ... です。 バージョン 3.6 で追加. Purpose. SERVER_AUTH ¶ create_default_context() と SSLContext.load_default_certs ... う)。 バージョン 3.4 で追加. Purpose. CLIENT_AUTH ¶ create_default_context() と SSLContext.load_default_certs ...
https://man.plustar.jp/python/library/ssl.html - [similar]
1. C や C++ による Python の拡張 — Python 3.6.5 ドキュメント 7126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... n コードを書かせてくれます。 1.1. 簡単な例 ¶ Let's create an extension module called spam (the favorite food ... of Monty Python fans...) and let's say we want to create a Python interface to the C library function syste ... PyInit_spam ( void ) { PyObject * m ; m = PyModule_Create ( & spammodule ); if ( m == NULL ) return NULL ; S ... ODINIT_FUNC PyInit_spam ( void ) { return PyModule_Create ( & spammodule ); } PyMODINIT_FUNC は関数の戻り値を ...
https://man.plustar.jp/python/extending/extending.html - [similar]
16.16. ctypes --- Pythonのための外部関数ライブラリ — Python 3.6.5 ドキュメント 7126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... もし変更可能なメモリブロックが必要なら、 ctypes には create_string_buffer() 関数があり、いろいろな方法で作成す ... ィを使ってください: >>> from ctypes import * >>> p = create_string_buffer ( 3 ) # create a 3 byte buffer, init ... ( p ), repr ( p . raw )) 3 b'\x00\x00\x00' >>> p = create_string_buffer ( b "Hello" ) # create a buffer cont ... ' >>> print ( repr ( p . value )) b'Hello' >>> p = create_string_buffer ( b "Hello" , 10 ) # create a 10 byt ...
https://man.plustar.jp/python/library/ctypes.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT