Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 141 - 150 of about 214 for FILE (0.134 sec.)
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 4716
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... : >>> mock = MagicMock ( return_value = sentinel . file_handle ) >>> with patch ( 'builtins.open' , mock ) ... : ... handle = open ( 'filename' , 'r' ) ... >>> mock . assert_called_with ( ' ... filename' , 'r' ) >>> assert handle == sentinel . file_handle , "incorrect file handle returned" モジュー ... 多くの構成は必要ありません。このメソッドが返すのが 'file-like' オブジェクトだとしましょう。そうすると、 res ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
21.9. urllib.error --- urllib.request が投げる例外 — Python 3.6.5 ドキュメント 4716
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... URLError のサブクラス) ですが、同時に例外ではない file-like な戻り値を返す関数でもあります ( urlopen() の ...
https://man.plustar.jp/python/library/urllib.error.html - [similar]
16.10. curses --- 文字セル表示を扱うための端末操作 — Python 3.6.5 ドキュメント 4674
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... tly True , then return (-1, -1) . curses. getwin ( file ) ¶ 以前の putwin() 呼び出しでファイルに保存されて ... TERM environment variable will be used. fd is the file descriptor to which any initialization sequences w ... ill be sent; if not supplied or -1 , the file descriptor for sys.stdout will be used. curses. st ... 変数は destwin 内の矩形を表します。 window. putwin ( file ) ¶ ウィンドウに関連付けられているすべてのデータを ...
https://man.plustar.jp/python/library/curses.html - [similar]
12.5. dbm --- Unix "データベース" へのインタフェース — Python 3.6.5 ドキュメン... 4674
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... なく例外 dbm.error )が使用されます。 dbm. whichdb ( filename ) ¶ この関数は、与えられたファイルを開くために ... ような、必要なモジュール名を含む文字列。 dbm. open ( file , flag='r' , mode=0o666 ) ¶ データベースファイル f ... に対しては KeyError が送出されます。 dbm.gnu. open ( filename [ , flag [ , mode ] ] ) ¶ gdbm データベースを開 ... いて gdbm オブジェクトを返します。 filename 引数はデータベースファイルの名前です。 オプショ ...
https://man.plustar.jp/python/library/dbm.html - [similar]
23.1. gettext --- 多言語対応に関する国際化サービス — Python 3.6.5 ドキュメント 4674
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ns です。 クラスのコンストラクタは単一の引数として file object を取らなければなりません。 codeset が与えら ... os . listdir ( '.' )) cat = GNUTranslations ( somefile ) message = cat . ngettext ( 'There is %(num)d fil ... e in this directory' , 'There are %(num)d files in this directory' , n ) % { 'num' : n } lgettext ... 付けしなくてはなりません。例えば以下のようにします: filename = 'mylog.txt' message = _ ( 'writing a log mes ...
https://man.plustar.jp/python/library/gettext.html - [similar]
20.13. xml.parsers.expat --- Expat を使った高速な XML 解析 — Python 3.6.5 ドキ... 4674
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... にはいつでも空の文字列を渡せます。 xmlparser. ParseFile ( file ) ¶ file オブジェクトから読み込んだXMLデータ ... を解析します。 file には read(nbytes) メソッドのみが必要です。このメソ ... も起こりません。 このメソッドは Parse() または ParseFile() メソッドが呼び出される前にだけ呼び出されます;これ ... ラーに関する値が入っており、また Parse() または ParseFile() メソッドが xml.parsers.expat.ExpatError 例外を送 ...
https://man.plustar.jp/python/library/pyexpat.html - [similar]
27.5. timeit --- 小さなコード断片の実行時間計測 — Python 3.6.5 ドキュメント 4674
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 的な判断で結果を見るようにしてください。 print_exc ( file=None ) ¶ 計測対象コードのトレースバックを出力するた ... ートのソース行が表示されることです。オプションの引数 file にはトレースバックの出力先を指定します。デフォルト ...
https://man.plustar.jp/python/library/timeit.html - [similar]
26.4. unittest --- ユニットテストフレームワーク — Python 3.6.5 ドキュメント 4674
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ------------- Traceback ( most recent call last ): File "subtests.py" , line 32 , in test_even self . asse ... ------------- Traceback ( most recent call last ): File "subtests.py" , line 32 , in test_even self . asse ... ------------- Traceback ( most recent call last ): File "subtests.py" , line 32 , in test_even self . asse ... ------------- Traceback ( most recent call last ): File "subtests.py" , line 32 , in test_even self . asse ...
https://man.plustar.jp/python/library/unittest.html - [similar]
20.12. xml.sax.xmlreader --- XML パーサのインタフェース — Python 3.6.5 ドキュメ... 4674
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ングを取得します。 InputSource. setByteStream ( bytefile ) ¶ この入力ソースのバイトストリーム ( binary file ... を返します。 InputSource. setCharacterStream ( charfile ) ¶ この入力ソースの文字ストリーム ( text file ) を ...
https://man.plustar.jp/python/library/xml.sax.reader.html - [similar]
10. 標準ライブラリミニツアー — Python 3.6.5 ドキュメント 4674
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... 提供されています: >>> import shutil >>> shutil . copyfile ( 'data.db' , 'archive.db' ) 'archive.db' >>> shut ... に便利です: >>> sys . stderr . write ( 'Warning, log file not found starting a new one \n ' ) Warning, log f ... 的にサポートされます: zlib , gzip , bz2 , lzma , zipfile , tarfile 。 >>> import zlib >>> s = b 'witch whic ... 1 timeit では小さい粒度を提供しているのに対し、 profile や pstats モジュールではより大きなコードブロックに ...
https://man.plustar.jp/python/tutorial/stdlib.html - [similar]