Results of 1 - 10 of about 37 for structure (0.005 sec.)
- ctypes --- Python 用の外部関数ライブラリ 14381
- ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために
...f . value , repr ( s . value )) 1 3.1400001049 b'Hello' >>> 構造体と共用体 構造体と共用体は、 ctypes モジュールが定義する Structure と Union の基底クラスから派生させる必要があります。 各サブクラスには _fields_ 属性を定義する必要があります。 _fields_ は、...な POINT 構造体の例です。コンストラクタで構造体を初期化する方法も説明しています: >>> from ctypes import * >>> class POINT ( Structure ): ... _fields_ = [( "x" , c_int ), ... ( "y" , c_int )] ... >>> point = POINT ( 10 , 20 ) >>> print ( point . x , point ....他の構造体を含むことができます。 upperleft と lowerright という名前の二つの POINT を持つ RECT 構造体です。: >>> class RECT ( Structure ): ... _fields_ = [( "upperleft" , POINT ), ... ( "lowerright" , POINT )] ... >>> rc = RECT ( point ) >>> print ( rc . upp... - https://man.mtool.work/python/3.14/library/ctypes.html
- Expat C API 11697
- Expat C API The xml.parsers.expat module exposes selected Expat functions through its expat_CAPI capsule. This allows extension modules to use the same Expat library as Python. The interface is declared in pyexpat.h , which must be included
...at_CAPI . PyExpat_CAPI_MAGIC The string identifying the layout of PyExpat_CAPI . Before using the function pointers in the structure, check that its magic member compares equal to this string using strcmp() and its size member is at least sizeof ( struct...PyExpat_CAPI ) . struct PyExpat_CAPI Table of function pointers exported by xml.parsers.expat . The capsule owns this structure: treat it as read-only and do not free it. Keep a strong reference to the capsule while using the table. Check the compati...IC before using the function pointers. char * magic Interface identifier, set to PyExpat_CAPI_MAGIC . int size Size of the structure in bytes, set to sizeof(struct PyExpat_CAPI) by the xml.parsers.expat module that created the capsule. int MAJOR_VERSION i... - https://man.mtool.work/python/3.14/c-api/pyexpat.html
- オブジェクト実装サポート (object implementation support) 11255
- オブジェクト実装サポート (object implementation support) この章では、新しいオブジェクトの型を定義する際に使われる関数、型、およびマクロについて説明します。 ヒープ上でのオブジェクトの割り当て 緩やかに非推奨となった別名 オブジェクトのライフサ
...イクル 生存期間中のイベント 孤立した循環参照群の破棄 関数 共通のオブジェクト構造体 (common object structure) 基本のオブジェクト型とマクロ 関数とメソッドの実装 拡張型の属性へのアクセス メンバーのフラグ メンバーの型 ゲッターとセッタ...プ型 数値オブジェクト構造体 マップオブジェクト構造体 シーケンスオブジェクト構造体 バッファオブジェクト構造体 (buffer object structure) async オブジェクト構造体 Slot Type typedefs 使用例 循環参照ガベージコレクションをサポートする ガベージコレクタの状態を制御... - https://man.mtool.work/python/3.14/c-api/objimpl.html
- email.iterators: イテレータ 10150
- email.iterators : イテレータ ソースコード: Lib/email/iterators.py Message.walk を使うと、メッセージオブジェクトのツリーを簡単に反復処理できます。 email.iterators モジュールは、メッセージオブジェクトのツリーに対する便利な高水準の反復処理を提
...ッグ用ツールとして追加されたもので、パッケージとして公式なサポートのあるインターフェイスでは ありません 。 email.iterators. _structure ( msg , fp = None , level = 0 , include_default = False ) そのメッセージオブジェクト構造の content-type をインデントつきで...表示します。例えば: >>> msg = email . message_from_file ( somefile ) >>> _structure ( msg ) multipart/mixed text/plain text/plain multipart/digest message/rfc822 text/plain message/rfc822 text/plain message... - https://man.mtool.work/python/3.14/library/email.iterators.html
- 複素数オブジェクト 9250
- 複素数オブジェクト Python's complex number objects are implemented as two distinct types when viewed from the C API: one is the Python object exposed to Python programs, and the other is a C structure which represents the actual complex num
...value. The API provides functions for working with both. C 構造体としての複素数 Note that the functions which accept these structures as parameters and return them as results do so by value rather than dereferencing them through pointers. This is consiste...nt throughout the API. type Py_complex The C structure which corresponds to the value portion of a Python complex number object. Most of the functions for dealing with complex n...umber objects use structures of this type as input or output values, as appropriate. double real double imag 構造体は次のように定義されています。 type... - https://man.mtool.work/python/3.14/c-api/complex.html
- Pythonモジュール索引 8587
- 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
...l.errors The exception classes used by the email package. email.generator Generate flat text email messages from a message structure. email.header Representing non-ASCII headers email.headerregistry Automatic Parsing of headers based on the field name ema....multipart email.mime.nonmultipart email.mime.text email.parser Parse flat text email messages to produce a message object structure. email.policy Controlling the parsing and generating of messages email.utils Miscellaneous email package utilities. encodi...ionalization services. glob Unix shell style pathname pattern expansion. graphlib Functionality to operate with graph-like structures grp The group database (getgrnam() and friends). gzip Interfaces for gzip compression and decompression using file object... - https://man.mtool.work/python/3.14/py-modindex.html
- shutil --- 高水準のファイル操作 8366
- shutil --- 高水準のファイル操作 ソースコード: Lib/shutil.py shutil モジュールは、ファイルやファイルの集合に対するさまざまな高水準の操作を提供します。 特に、ファイルのコピーや削除を行う関数が用意されています。 個々のファイルを操作する場合は
...ますが、ここでは特に base_dir の使い方を説明します。以下のようなディレクトリ構造があるとします。 $ tree tmp tmp └── root └── structure ├── content └── please_add.txt └── do_not_add.txt 作成するアーカイブには please_add.txt が含まれますが、いっぽう do_not_ad...join ( '~' , 'myarchive' )) >>> make_archive ( ... archive_name , ... 'tar' , ... root_dir = 'tmp/root' , ... base_dir = 'structure/content' , ... ) '/Users/tarek/myarchive.tar' アーカイブに含まれるファイルをリストすると、以下のようになります。 $ python...-m tarfile -l /Users/tarek/myarchive.tar structure/content/ structure/content/please_add.txt 出力ターミナルのサイズの取得 shutil. get_terminal_size ( fallback = (columns, li... - https://man.mtool.work/python/3.14/library/shutil.html
- email.message: 電子メールメッセージの表現 8145
- email.message : 電子メールメッセージの表現 ソースコード: Lib/email/message.py Added in version 3.6: [ 1 ] email パッケージの中心となるクラスは、 email.message モジュールからインポートする EmailMessage です。 これは email のオブジェクトモデル
...サブパートを反復処理します。 msg.get_content_maintype() == 'multipart' が False を返す場合も同様です。 デバッグ用の補助関数 _structure() を使うと、この例でその様子を確認できます。 >>> from email.iterators import _structure >>> for part in msg . walk (): ......tipart' , ... part . is_multipart ()) True True False False False True False False False False False True False False >>> _structure ( msg ) multipart/report text/plain message/delivery-status text/plain text/plain message/rfc822 text/plain ここでは messa... - https://man.mtool.work/python/3.14/library/email.message.html
- errno --- 標準の errno システムシンボル 8145
- errno --- 標準の errno システムシンボル このモジュールから標準の errno システムシンボルを取得することができます。個々のシンボルの値は errno に対応する整数値です。これらのシンボルの名前は、 linux/include/errno.h から借用されており、網羅的なは
...EUNATCH プロトコルドライバが接続されていません (Protocol driver not attached) errno. ENOCSI CSI 構造体がありません (No CSI structure available) errno. EL2HLT レベル 2 で終了しました (Level 2 halted) errno. EBADE 無効な変換です (Invalid exchange) errno. EB...します。 errno. ESTALE 無効な NFS ファイルハンドルです (Stale NFS file handle) errno. EUCLEAN 構造のクリーニングが必要です (Structure needs cleaning) errno. ENOTNAM XENIX 名前付きファイルではありません (Not a XENIX named type file) errno. ENAVAIL XENIX セマ... - https://man.mtool.work/python/3.14/library/errno.html
- Python/C API リファレンスマニュアル 7908
- Python/C API リファレンスマニュアル このマニュアルでは、拡張モジュールを書いたり Python インタプリタをアプリケーションに埋め込んだりしたい C/C++ プログラマが利用できる API について述べています。 Python インタプリタの拡張と埋め込み は拡張モジ
...mentation support) ヒープ上でのオブジェクトの割り当て オブジェクトのライフサイクル 共通のオブジェクト構造体 (common object structure) 型オブジェクトの構造体 循環参照ガベージコレクションをサポートする API と ABI のバージョニング ビルド時のバージョン定数 実... - https://man.mtool.work/python/3.14/c-api/