Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 107 for example (0.064 sec.)
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 7020
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... so we can mock this using a MagicMock . Here's an example class with an "iter" method implemented as a gener ... values were when the mock was called. Here's some example code that shows the problem. Imagine the following ... ments and store them for later assertions. In this example I'm using another mock to store the arguments so t ... (using copy.deepcopy() ) the arguments. Here's an example implementation: >>> from copy import deepcopy >>> ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
6. 式 (expression) — Python 3.6.5 ドキュメント 7020
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... tine function to be an asynchronous generator. For example: def gen (): # defines a generator function yield ... er to be called upon finalization. For a reference example of a finalizer method see the implementation of as ... er to a not-a-number value will return False . For example, both 3 < float('NaN') and float('NaN') < 3 will r ... prising: The non-reflexive not-a-number values for example result in the following comparison behavior when u ...
https://man.plustar.jp/python/reference/expressions.html - [similar]
3. setup 設定ファイル (setup configuration file) を書く — Python 3.6.5 ドキュメ... 6918
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの ... ine is spelled foo_bar in configuration files. For example, say you want your extensions to be built "in-plac ... 配布は、ほとんどの場合よくない考え方です。) Another example: certain commands take a lot of options that don't ... change from run to run; for example, bdist_rpm needs to know everything required to ge ... doc_files = CHANGES.txt README.txt USAGE.txt doc/ examples/ doc_files オプションは、単に空白で区切られた文字 ...
https://man.plustar.jp/python/distutils/configfile.html - [similar]
DTrace と SystemTap で CPython を測定する — Python 3.6.5 ドキュメント 6918
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » DTra ... emTap script. 静的 DTrace プローブ ¶ The following example DTrace script can be used to show the call/return ... the probe's dotted path needs to reflect this. For example, this line from the above example: probe process(" ... ses the tapset above to more cleanly implement the example given above of tracing the Python function-call hi ...
https://man.plustar.jp/python/howto/instrumentation.html - [similar]
14.2. configparser --- 設定ファイルのパーサー — Python 3.6.5 ドキュメント 6918
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... EFAULT' ][ 'ForwardX11' ] = 'yes' >>> with open ( 'example.ini' , 'w' ) as configfile : ... config . write ( ... ) >>> config . sections () [] >>> config . read ( 'example.ini' ) ['example.ini'] >>> config . sections () [' ... %(baz)s !' ) # Writing our configuration file to 'example.cfg' with open ( 'example.cfg' , 'w' ) as configfi ... configparser . RawConfigParser () config . read ( 'example.cfg' ) # getfloat() raises an exception if the val ...
https://man.plustar.jp/python/library/configparser.html - [similar]
29.12. inspect --- 活動中のオブジェクトの情報を取得する — Python 3.6.5 ドキュメ... 6918
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... , isbuiltin() でない場合に真を返します。 This, for example, is true of int.__add__ . An object passing this t ... pectable in certain implementations of Python. For example, in CPython, some built-in functions defined in C ... detailed specification, implementation details and examples. 29.12.4. クラスと関数 ¶ inspect. getclasstree ( ... last object in the chain is returned as usual. For example, signature() uses this to stop unwrapping if any o ...
https://man.plustar.jp/python/library/inspect.html - [similar]
10. 標準ライブラリミニツアー — Python 3.6.5 ドキュメント 6815
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... 'localhost' ) >>> server . sendmail ( 'soothsayer@example.org' , 'jcaesar@example.org' , ... """To: jcaesar@ ... example.org ... From: soothsayer@example.org ... ... Beware the Ides of March. ... """ ) >> ...
https://man.plustar.jp/python/tutorial/stdlib.html - [similar]
18.5.5. ストリーム (コルーチンベースの API) — Python 3.6.5 ドキュメント 6713
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... l_complete ( task ) loop . close () 使い方: python example . py http : // example . com / path / page . html ... または HTTPS を使用: python example . py https : // example . com / path / page . html ...
https://man.plustar.jp/python/library/asyncio-stream.html - [similar]
21.6. urllib.request --- URL を開くための拡張可能なライブラリ — Python 3.6.5 ド... 6713
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... L the user did not have the option to approve. For example, if the request is for an image in an HTML documen ... opener ) urllib . request . urlopen ( 'http://www.example.com/login.html' ) build_opener() はデフォルトで沢山 ... b . request . ProxyHandler ({ 'http' : 'http://www.example.com:3128/' }) proxy_auth_handler = urllib . reques ... r, we use it directly: opener . open ( 'http://www.example.com/login.html' ) 以下は HTTP ヘッダーを追加する例 ...
https://man.plustar.jp/python/library/urllib.request.html - [similar]
28.4. zipapp --- 実行可能な python zip 書庫を管理する — Python 3.6.5 ドキュメン... 6713
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... both versions. If you use an explicit version, for example "/usr/bin/env python3" your application will not w ... nge your shebang line for users of Python 3.5, for example. Typically, you should use an "/usr/bin/env python ... egistered extensions "transparently" (the simplest example is that subprocess.run(['myapp']) won't find your ... cies need to be prepared for this possibility. For example, if your application uses the multiprocessing modu ...
https://man.plustar.jp/python/library/zipapp.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT