per page, with , order by , clip by
Results of 1 - 10 of about 224 for type (0.006 sec.)
mimetypes --- ファイル名を MIME タイプへマップする 9405
mimetypes --- ファイル名を MIME タイプへマップする ソースコード: Lib/mimetypes.py mimetypes モジュールは、ファイル名または URL と、ファイル拡張子に対応する MIME 型との間の変換を行います。 ファイル名から MIME 型への変換と、MIME 型からファイル ... れていなくても、もしこれらの関数が、 init() がセットアップする情報に依存していれば、これらの関数は、 init() を呼びます。 mimetypes. guess_type ( url , strict = True ) url で与えられるファイル名あるいは URL に基づいて、ファイルの型を推定します。URL は文 ... 字列または path-like object です。 戻り値は、タプル (type, encoding) です、ここで type は、もし型が(拡張子がないあるいは未定義のため)推定できない場合は、 None を、あるいは、 MIME c ... ontent-type ヘッダ に利用できる、 'type/subtype' の形の文字列です。 encoding は、符合化方式がない場合は None を、あるいは、符号化に使わ ...
https://man.mtool.work/python/3.14/library/mimetypes.html
型オブジェクト 9270
型オブジェクト type PyTypeObject 次に属します: Limited API (不透明な構造体として). 組み込み型を記述する際に用いられる、オブジェクトを表す C 構造体です。 PyTypeObject PyType_Type 次に属します: Stable ABI . 型オブジェクト自身の型オブジェクトで ... す。Python レイヤにおける type と同じオブジェクトです。 int PyType_Check ( PyObject * o ) オブジェクト o が型オブジェクトであれば、標準の型オブジェクトか ... ら派生した型のインスタンスも含めてゼロ以外を返します。 それ以外の場合は 0 を返します。 この関数は常に成功します。 int PyType_CheckExact ( PyObject * o ) オブジェクト o が標準の型オブジェクトのインスタンスであり、そのサブタイプのインスタンスではない ... 場合にゼロ以外を返します。 それ以外の場合は 0 を返します。 この関数は常に成功します。 unsigned int PyType_ClearCache ( ) 次に属します: Stable ABI . 内部の検索キャッシュをクリアします。現在のバージョンタグを返します。 unsigned lo ...
https://man.mtool.work/python/3.14/c-api/type.html
C API Stability 9228
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... nd compiler options. For the purposes of the Stable ABI , these details define a “platform”. They usually depend on the OS type and processor architecture It is the responsibility of each particular distributor of Python to ensure that all Python ver ... RECORDS PyBUF_RECORDS_RO PyBUF_SIMPLE PyBUF_STRIDED PyBUF_STRIDED_RO PyBUF_STRIDES PyBUF_WRITABLE PyBUF_WRITE PyBaseObject_Type PyBool_FromLong() PyBool_Type PyBuffer_FillContiguousStrides() PyBuffer_FillInfo() PyBuffer_FromContiguous() PyBuffer_GetP ... ointer() PyBuffer_IsContiguous() PyBuffer_Release() PyBuffer_SizeFromFormat() PyBuffer_ToContiguous() PyByteArrayIter_Type PyByteArray_AsString() PyByteArray_Concat() PyByteArray_FromObject() PyByteArray_FromStringAndSize() PyByteArray_Resize() ...
https://man.mtool.work/python/3.14/c-api/stable.html
10. 完全な文法仕様 9166
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... # (like any rule in PEG). # # Grammar Syntax (see PEP 617 for more information): # # rule_name: expression # Optionally, a type can be included right after the rule name, which # specifies the return type of the C or Python function corresponding to ... the # rule: # rule_name[return_type]: expression # If the return type is omitted, then a void * is returned in C and an Any in # Python. # e1 e2 # Match e1, t ... name for # formatting purposes. In that case, a | must be used before the first # alternative, like so: # rule_name[return_type]: # | first_alt # | second_alt # ( e ) # Match e (allows also to use other operators in the group like '(e)*') # [ e ] or ...
https://man.mtool.work/python/3.14/reference/grammar.html
デスクリプタオブジェクト (descriptor object) 9062
デスクリプタオブジェクト (descriptor object) "デスクリプタ (descriptor)" は、あるオブジェクトのいくつかの属性について記述したオブジェクトです。デスクリプタオブジェクトは型オブジェクトの辞書内にあります。 PyTypeObject PyProperty_Type 次に属し ... ます: Stable ABI . The type object for the built-in descriptor types. PyObject * PyDescr_NewGetSet ( PyTypeObject * type , struct PyGetSetDef * getset ... ) 戻り値: 新しい参照。 次に属します: Stable ABI . PyGetSetDef 構造体 getset から、拡張型 type 用の新しい get-set デスクリプタを作成します。 get-set デスクリプタは、インスタンスに直接格納される属性ではなく、C のゲッタ ... セッター関数で実装された属性を公開します。 tp_getset のエントリーに対して作られるものと同じ種類のデスクリプタで、Python では types.GetSetDescriptorType オブジェクトとして扱われます。 成功するとデスクリプタへの 強参照 を返します。 失敗すると例外を設定し ...
https://man.mtool.work/python/3.14/c-api/descriptor.html
イテレータオブジェクト (iterator object) 9000
イテレータオブジェクト (iterator object) Python では二種類のイテレータオブジェクトを提供しています。一つ目はシーケンスイテレータで、 __getitem__() メソッドをサポートする任意のシーケンスを取り扱います。二つ目は呼び出し可能オブジェクトと番兵 ... を扱い、シーケンス内の要素ごとに呼び出し可能オブジェクトを呼び出して、センチネル値が返されたときに反復処理を終了します。 PyTypeObject PySeqIter_Type 次に属します: Stable ABI . PySeqIter_New() や、組み込みシーケンス型に対して 1 引数形式の組み込み関数 ... 出したときに返される、イテレータオブジェクトの型オブジェクトです。 int PySeqIter_Check ( PyObject * op ) op の型が PySeqIter_Type の場合に真を返します。 この関数は常に成功します。 PyObject * PySeqIter_New ( PyObject * seq ) 戻り値: 新しい参照。 次に属し ... ジェクト seq を扱うイテレータを返します。反復処理は、シーケンスが添字指定操作の際に IndexError を返したときに終了します。 PyTypeObject PyCallIter_Type 次に属します: Stable ABI . PyCallIter_New() や、組み込み関数 iter() の 2 引数形式が返すイテレータオブ ...
https://man.mtool.work/python/3.14/c-api/iterator.html
ast --- 抽象構文木 8896
ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在 ... ード・オブジェクトにコンパイルすることができます。 抽象文法 抽象文法は、現在次のように定義されています: -- ASDL's 4 builtin types are: -- identifier, int, string, constant module Python { mod = Module ( stmt * body , type_ignore * type_ignores ) | Int ... eractive ( stmt * body ) | Expression ( expr body ) | FunctionType ( expr * argtypes , expr returns ) stmt = FunctionDef ( identifier name , arguments args , stmt * body , expr * decorator_ ... list , expr ? returns , string ? type_comment , type_param * type_params ) | AsyncFunctionDef ( identifier name , arguments args , stmt * body , expr * decorato ...
https://man.mtool.work/python/3.14/library/ast.html
email.message.Message: compat32 API を使用した電子メールメッセージの表現 8865
email.message.Message : compat32 API を使用した電子メールメッセージの表現 Message クラスは EmailMessage クラスによく似ていますが、後者で追加されたメソッドはなく、一部の他のメソッドでもデフォルトの動作が少し異なります。 ここでは、 EmailMessa ... です (CTE でエンコードされたバイナリのペイロードの場合もあります)。 is_multipart() が True を返しても、 msg.get_content_maintype() == 'multipart' が True を返すとは限りません。 例えば、 Message の型が message/rfc822 の場合も is_multipart() は True を返 ... 上の場合は IndexError が発生します。ペイロードが文字列 (つまり is_multipart() が False ) にもかかわらず i が与えられたときは TypeError が発生します。 オプションの decode は、 Content-Transfer-Encoding ヘッダーに従ってペイロードをデコードするかどうかを指 ... ansfer-Encoding をデコードせず、本体を文字列として返します。 ただし、 Content-Transfer-Encoding が 8bit の場合は、 Content-Type ヘッダーで指定された charset と replace エラーハンドラーを使って、元のバイト列のデコードを試みます。 charset が指定されてい ...
https://man.mtool.work/python/3.14/library/email.compat32-message.html
typing --- 型ヒントのサポート 8803
typing --- 型ヒントのサポート Added in version 3.5. ソースコード: Lib/typing.py 注釈 Python ランタイムは、関数や変数の型アノテーションを強制しません。型アノテーションは、 type checkers や IDE、linterなどのサードパーティーツールで使われます。 ... urn f "The surface area of the cube is { 6 * edge_length ** 2 } ." surface_area_of_cube 関数は、 edge_length: float という type hint で示されているように、引数が float のインスタンスであるという前提です。 そして、 -> str というヒントにある通り、この関 ... の新機能を使うことができます。 参考 型ヒントの早見表 型ヒントの簡単な概要 (mypy ドキュメンテーション) mypy のドキュメント の Type System Reference の節 Python の型システムの規格は PEP によって定められているので、このレファレンスはほとんどの Python 型チ ... に依らないドキュメンテーション。 Python 型システムの仕様 最新の正式な Python 型システムの仕様は Specification for the Python type system を参照してください。 型エイリアス 型エイリアスは type 文を用いて定義され、これにより TypeAliasType インスタンスが生 ...
https://man.mtool.work/python/3.14/library/typing.html
共通のオブジェクト構造体 (common object structure) 8263
共通のオブジェクト構造体 (common object structure) Python のオブジェクト型の定義には、多数の構造体が使われます。 この節では、それらの構造体と使い方を説明します。 基本のオブジェクト型とマクロ すべての Python オブジェクトは、メモリ上の表現の先 ... の Python オブジェクトの定義でも直接的または間接的に使われます。 その他のマクロについては 参照カウント を参照してください。 type PyObject 次に属します: Limited API . (いくつかのメンバーのみが安定 ABI です。) All object types are extensions of this typ ... e. This is a type which contains the information Python needs to treat a pointer to an object as an object. In a normal "release" build, it ... contains only the object's reference count and a pointer to the corresponding type object. Nothing is actually declared to be a PyObject , but every pointer to a Python object can be cast to a PyObject * . ...
https://man.mtool.work/python/3.14/c-api/structures.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT