per page, with , order by , clip by
Results of 1 - 10 of about 41 for Binary file (0.009 sec.)
binary (60), file (226)
faulthandler --- Python トレースバックをダンプする 28209
faulthandler --- Python トレースバックをダンプする Added in version 3.3. このモジュールには、Python のトレースバックを明示的にダンプしたり、フォールトの発生時、タイムアウト後、ユーザーシグナルの受信時にダンプしたりする関数があります。 SIGSE ... プログラムのスタックトレースを抽出・整形・表示する標準インターフェース。 tracebackのダンプ faulthandler. dump_traceback ( file = sys.stderr , all_threads = True ) Dump the tracebacks of all threads into file . If all_threads is False , dump only the ... この関数にファイル記述子を渡せるようになりました。 C スタックのダンプ Added in version 3.14. faulthandler. dump_c_stack ( file = sys.stderr ) 現在のスレッドの C スタックトレースを file にダンプします。 Python のビルドが対応していない場合や、OS がスタ ... t__.py", line 486 in string_at File "<stdin>", line 1 in <module> Current thread's C stack trace (most recent call first): Binary file "/opt/python/python", at _Py_DumpStack+0x42 [0x5b27f7d7147e] Binary file "/opt/python/python", at +0x32dcbd [0x5b27f7 ...
https://man.mtool.work/python/3.14/library/faulthandler.html
リモートデバッグのアタッチプロトコル 15592
リモートデバッグのアタッチプロトコル このプロトコルを使うと、外部ツールから実行中の CPython プロセスにアタッチし、Python コードをリモートで実行できます。 別の Python プロセスへのアタッチには、プラットフォームによって追加の権限や設定が必要な ... sign --sign - --entitlements get-task-allow.plist path/to/bin/python3 where path/to/bin/python3 is the path to your Python binary, which you can find by e.g. running which python3 or evaluating sys.base_executable at the Python REPL. (These instruction ... s address can't be hardcoded or calculated from a symbol name, because it depends on where the operating system loaded the binary. PyRuntime の位置を特定する方法はプラットフォームによって異なりますが、大まかな手順は共通です。 対象プロセスで Python のバ ... スト切り替えが必要なため、はるかに低速です。 For parsing ELF sections, the process involves reading and interpreting the ELF file format structures from the binary file on disk. The ELF header contains a pointer to the section header table. Each sectio ...
https://man.mtool.work/python/3.14/howto/remote_debugging.html
pathlib --- オブジェクト指向のファイルシステムパス 15448
pathlib --- オブジェクト指向のファイルシステムパス Added in version 3.4. ソースコード: Lib/pathlib/ このモジュールはファイルシステムのパスを表すクラスを提供していて、様々なオペレーティングシステムについての適切な意味論をそれらのクラスに持た ... ルート相対パス (例えば r'\foo' ) があってもドライブ名はそのまま変わりません: >>> PureWindowsPath ( 'c:/Windows' , '/Program Files' ) PureWindowsPath('c:/Program Files') 単一スラッシュと等価な複数スラッシュやシングルドットは簡略化されますが、ダブルドッ ... PureWindowsPath ( 'c:/' , 'Users' , 'Ximénez' ) PureWindowsPath('c:/Users/Ximénez') >>> PureWindowsPath ( '//server/share/file' ) PureWindowsPath('//server/share/file') pathsegments の指定は PurePath と同じです。 これらクラスはあらゆるシステムコール ... ラメータが追加されました。 Path. read_bytes ( ) 指定されたファイルの内容をバイナリオブジェクトで返します: >>> p = Path ( 'my_binary_file' ) >>> p . write_bytes ( b 'Binary file contents' ) 20 >>> p . read_bytes () b'Binary file contents' Added in version ...
https://man.mtool.work/python/3.14/library/pathlib.html
Pythonモジュール索引 13642
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... nterfaces, import-time behavior, and ``__name__ == '__main__'``. _thread Low-level threading API. _tkinter A binary module that contains the low-level interface to Tcl/Tk. a abc Abstract base classes according to :pep:`3119`. aifc 非推奨: ... 8: Base16, Base32, Base64 Data Encodings; Base85 and Ascii85 bdb Debugger framework. binascii Tools for converting between binary and various ASCII-encoded binary representations. bisect Array bisection algorithms for binary searching. builtins The mod ... s colorsys Conversion functions between RGB and other color systems. compileall Tools for byte-compiling all Python source files in a directory tree. compression compression.zstd Low-level interface to compression and decompression routines in the zs ...
https://man.mtool.work/python/3.14/py-modindex.html
7. Input and Output 13632
7. Input and Output プログラムの出力方法にはいくつかの種類があります。 データを人間が読める形で出力することもあれば、将来使うためにファイルに書くこともあります。 この章では、こうした幾つかの出力の方法について話します。 7.1. Fancier Output F ... math . pi ) πの値はだいたい 3.142 です。 より詳しい情報は printf 形式の文字列書式化 にあります。 7.2. Reading and Writing Files open() returns a file object , and is most commonly used with two positional arguments and one keyword argument: open(fil ... ename, mode, encoding=None) >>> f = open ( 'workfile' , 'w' , encoding = "utf-8" ) 最初の引数はファイル名の入った文字列です。二つめの引数も文字列で、ファイルをどのように使うか ... 8" is recommended unless you know that you need to use a different encoding. Appending a 'b' to the mode opens the file in binary mode . Binary mode data is read and written as bytes objects. You can not specify encoding when opening file in binary mod ...
https://man.mtool.work/python/3.14/tutorial/inputoutput.html
plistlib --- Apple .plist ファイルを生成・解析する 13277
plistlib --- Apple .plist ファイルを生成・解析する ソースコード: Lib/plistlib.py このモジュールは Apple (主に macOS と iOS) で使われる「プロパティーリスト」ファイルを読み書きするインターフェイスを提供します。このモジュールはバイナリと XML の ... plist ファイルの両方をサポートします。 The property list ( .plist ) file format is a simple serialization supporting basic object types, like dictionaries, lists, numbers and strings. Usually the ... 返します。 fmt はファイルの形式で、次の値が有効です。 None : ファイル形式を自動検出します FMT_XML : XML ファイル形式です FMT_BINARY : バイナリの plist 形式です dict_type は、 plist ファイルから読み出された辞書に使われる型です。 aware_datetime が真の場合、 ... らの文書を参照してください。plist 解析器では、未知の要素は単純に無視されます。 ファイルを解析できない場合、パーサーは InvalidFileException を送出します。 Added in version 3.4. バージョン 3.13 で変更: キーワード専用引数 aware_datetime が追加されました。 ...
https://man.mtool.work/python/3.14/library/plistlib.html
email.policy: ポリシーオブジェクト 13030
email.policy : ポリシーオブジェクト Added in version 3.3. ソースコード: Lib/email/policy.py email パッケージの主な目的は、メールや MIME に関する各種 RFC に従ってメールメッセージを扱うことです。 しかし、メールの一般的な形式はメール以外の用途 ... ァイルから電子メールメッセージを読み込み、Unix システムの sendmail プログラムに渡します: >>> from email import message_from_binary_file >>> from email.generator import BytesGenerator >>> from email import policy >>> from subprocess import Popen , PIPE > ... >> with open ( 'mymsg.txt' , 'rb' ) as f : ... msg = message_from_binary_file ( f , policy = policy . default ) ... >>> p = Popen ([ 'sendmail' , msg [ 'To' ] . addresses [ 0 ]], stdin = PIPE ) > ...
https://man.mtool.work/python/3.14/library/email.policy.html
importlib.resources -- パッケージリソースの読み取り、オープン、アクセス 13008
importlib.resources -- パッケージリソースの読み取り、オープン、アクセス ソースコード: Lib/importlib/resources/__init__.py Added in version 3.7. このモジュールは Python のインポートシステムを利用し、 パッケージ 内の リソース にアクセスする機 ... モジュールオブジェクト またはモジュール名の文字列です。 Union[str, ModuleType] として定義されています。 importlib.resources. files ( anchor : Anchor | None = None ) リソースのコンテナ (ディレクトリに相当) とそのリソース (ファイルに相当) を表す Traversa ... hor positionally or using importlib_resources >= 5.10 for a compatible interface on older Pythons. importlib.resources. as_file ( traversable ) 通常は importlib.resources.files() から得られる、ファイルまたはディレクトリを表す Traversable オブジェクト ... 構成要素ではパスの区切り文字にスラッシュ ( / ) を使ってください。 例えば、次の 2 つは等価です。 importlib . resources . read_binary ( my_module , "pics/painting.png" ) importlib . resources . read_binary ( my_module , "pics" , "painting.png" ) 後方互換性 ...
https://man.mtool.work/python/3.14/library/importlib.resources.html
zipfile --- ZIP アーカイブの処理 12838
zipfile --- ZIP アーカイブの処理 Source code: Lib/zipfile/ ZIP は一般によく知られているアーカイブ (書庫化) および圧縮の標準ファイルフォーマットです。このモジュールでは ZIP 形式のファイルの作成、読み書き、追記、書庫内のファイル一覧の作成を行 ... する立場の場合は オプションのモジュールの要件 を参照してください。 このモジュールは以下の項目を定義しています: exception zipfile. BadZipFile 正常ではない ZIP ファイルに対して送出されるエラーです。 Added in version 3.2. exception zipfile. BadZipfile Ba ... dZipFile の別名です。過去のバージョンの Python との互換性のために用意されています。 バージョン 3.2 で非推奨. exception zipfile. Lar ... ath. open ( mode='r' , * , pwd , ** ) Invoke ZipFile.open() on the current path. Allows opening for read or write, text or binary through supported modes: 'r', 'w', 'rb', 'wb'. Positional and keyword arguments are passed through to io.TextIOWrapper whe ...
https://man.mtool.work/python/3.14/library/zipfile.html
ファイルオブジェクト 12798
ファイルオブジェクト これらの API は、C 標準ライブラリのバッファ付き I/O ( FILE * ) に依存していた Python 2 の組み込みファイルオブジェクトの C API を、最小限エミュレートするものです。 Python 3 のファイルやストリームは新しい io モジュールを使 ... 内部でのエラー報告を目的としています。 サードパーティのコードでは、代わりに io の API を使うことを推奨します。 PyObject * PyFile_FromFd ( int fd , const char * name , const char * mode , int buffering , const char * encoding , const char * errors , co ... ると、データの順序が予想外になるなどの問題が起きる可能性があります。 バージョン 3.2 で変更: name 属性の無視。 int PyObject_AsFileDescriptor ( PyObject * p ) 次に属します: Stable ABI . p に関連づけられる ファイルディスクリプタを int として返します。オブ ... e has been stored or when the end of the file is reached. The result is always null-terminated. stream should be opened in binary mode, so that the C library does not perform its own newline translation. Return buf on success. Return NULL if no charact ...
https://man.mtool.work/python/3.14/c-api/file.html
PREV 1 2 3 4 5 NEXT