Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 52 for we (0.027 sec.)
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 14621
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... s recommended in real-world use cases to use the newer and better-maintained setuptools library. Documen ... . Let's also make the type usable as a base class. We'll create a new module, custom2 that adds these ca ... xplicit cast to destructor above is needed because we defined Custom_dealloc to take a CustomObject * ar ... rning. This is object-oriented polymorphism, in C! We want to make sure that the first and last names ar ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
19.1.8. email: 使用例 — Python 3.6.5 ドキュメント 13382
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... function import smtplib # Import the email modules we'll need from email.message import EmailMessage # O ... from the parser module: # Import the email modules we'll need from email.parser import BytesParser , Par ... import imghdr # Here are the email package modules we'll need from email.message import EmailMessage # C ... y the regular files in the directory are sent, and we don't recurse to subdirectories.""" ) parser . add ...
https://man.plustar.jp/python/library/email.examples.html - [similar]
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 11679
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... to the mock, regardless of whether some parameters were passed as positional or named arguments: >>> def ... 9 , 6 , 8 ) == date ( 2009 , 6 , 8 ) ... Note that we don't patch datetime.date globally, we patch date ... e protocol method for iteration is __iter__() , so we can mock this using a MagicMock . Here's an exampl ... o () >>> list ( foo . iter ()) [1, 2, 3] How would we mock this class, and in particular its "iter" meth ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
19.1. email --- 電子メールと MIME 処理のためのパッケージ — Python 3.6.5 ドキュ... 8259
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... uestions about an existing email, to construct a new email, or to add or remove email subcomponents that ... rectly instantiating an EmailMessage to create a new email, or by parsing an input stream using a parser ... se are represented when serialized. In practice, however, it is often necessary to be aware of at least ... s describe the functionality of the email package. We start with the message object model, which is the ...
https://man.plustar.jp/python/library/email.html - [similar]
Argument Clinic How-To — Python 3.6.5 ドキュメント 7885
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argu ... intain an external C extension for CPython, you're welcome to experiment with Argument Clinic in your ow ... rated code]*/ Cut the docstring and paste it in between the [clinic] lines, removing all the junk that m ... he docstring, enter the name of the function, followed by a blank line. This should be the Python name o ... les and statics go at the top. (In our sample code we'll just show the two blocks next to each other.) T ...
https://man.plustar.jp/python/howto/clinic.html - [similar]
urllib パッケージを使ってインターネット上のリソースを取得するには — Python 3.6.... 7885
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » urll ... は CGI (Common Gateway Interface) スクリプトや他の web アプリケーションを参照することになります)。これは ... リクエストとして知られる方法で行なわれます。これは web 上で HTML フォームを埋めて送信するときにブラウザが ... 00ポンドのスパムの缶詰をドアの前まで配達する注文を web サイトで行う)。とはいえ HTTP 標準で明確にされてい ... ヘッダを追加する方法について例示します。 いくつかの web サイト [1] はプログラムからブラウズされることを嫌 ...
https://man.plustar.jp/python/howto/urllib2.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 7691
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... . getLogger ( '' ) . addHandler ( console ) # Now, we can log to the root logger, or any other logger. F ... が動くようにしないといけないときがあります。これは Web アプリケーションではよくあることですし、もちろん他 ... e rootLogger . addHandler ( socketHandler ) # Now, we can log to the root logger, or any other logger. F ... quests - each expected to be a 4-byte length, followed by the LogRecord in pickle format. Logs the recor ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
12.6. sqlite3 --- SQLite データベースに対する DB-API 2.0 インタフェース — Pytho... 7602
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... " ) # Save (commit) the changes conn . commit () # We can also close the connection if we are done with ... ur . fetchone () assert row [ 0 ] == AUSTRIA # but we can make sqlite3 always return bytestrings ... con ... assert row [ 0 ] == AUSTRIA . encode ( "utf-8" ) # we can also implement a custom text_factory ... # her ... e we implement one that appends "foo" to all strings co ...
https://man.plustar.jp/python/library/sqlite3.html - [similar]
10. 完全な文法仕様 — Python 3.6.5 ドキュメント 7602
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... 全な Python の文法です: # Grammar for Python # NOTE WELL: You should also follow all the steps listed at ... tions. # NB: compound_stmt in single_input is followed by extra NEWLINE! single_input : NEWLINE | simple ... factor ) * factor : ( '+' | '-' | '~' ) factor | power power : atom_expr [ '**' factor ] atom_expr : [ A ... "test '=' test" is really "keyword '=' test", but we have no such token. # These need to be in a single ...
https://man.plustar.jp/python/reference/grammar.html - [similar]
27.7. tracemalloc --- メモリ割り当ての追跡 — Python 3.6.5 ドキュメント 7497
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... : size = 48.0 KiB , count = 1 , average = 48.0 KiB We can see that Python loaded 4855 KiB data (bytecode ... 67.2 KiB ), count = 126 ( + 126 ), average = 546 B We can see that Python has loaded 8173 KiB of module ... line 160 "__main__" , fname , loader , pkg_name ) We can see that the most memory was allocated in the ... r b in _hexdig } #8: <string>:5: 62.0 KiB #9: Lib/_weakrefset.py:37: 60.0 KiB self . data = set () #10: ...
https://man.plustar.jp/python/library/tracemalloc.html - [similar]
PREV 1 2 3 4 5 6 NEXT