Results of 1 - 10 of about 221 for PyObject (0.011 sec.)
- オブジェクトプロトコル (object protocol) — Python 3.14.8 ドキュメント 7495
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » オブジェクトプロトコル (object protocol) テーマ 自動 ライト ダーク | オブジェク
...トプロトコル (object protocol) ¶ PyObject * Py_GetConstant ( unsigned int constant_id ) ¶ 次に属します: Stable ABI (バージョン 3.13 より). Get a strong reference to...use the constant identifiers. Added in version 3.13. CPython 実装の詳細: In CPython, all of these constants are immortal . PyObject * Py_GetConstantBorrowed ( unsigned int constant_id ) ¶ 次に属します: Stable ABI (バージョン 3.13 より). Similar to Py_Get...e. The reference is borrowed from the interpreter, and is valid until the interpreter finalization. Added in version 3.13. PyObject * Py_NotImplemented ¶ 与えられたオブジェクトとメソッドの引数の型の組み合わせの処理が未実装である印として使われる、 未実装... - https://man.mtool.work/python/3.14/c-api/object.html
- オブジェクトプロトコル (object protocol) — Python 3.14.8 ドキュメント 7495
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » オブジェクトプロトコル (object protocol) テーマ 自動 ライト ダーク | オブジェク
...トプロトコル (object protocol) ¶ PyObject * Py_GetConstant ( unsigned int constant_id ) ¶ 次に属します: Stable ABI (バージョン 3.13 より). Get a strong reference to...use the constant identifiers. Added in version 3.13. CPython 実装の詳細: In CPython, all of these constants are immortal . PyObject * Py_GetConstantBorrowed ( unsigned int constant_id ) ¶ 次に属します: Stable ABI (バージョン 3.13 より). Similar to Py_Get...e. The reference is borrowed from the interpreter, and is valid until the interpreter finalization. Added in version 3.13. PyObject * Py_NotImplemented ¶ 与えられたオブジェクトとメソッドの引数の型の組み合わせの処理が未実装である印として使われる、 未実装... - https://man.mtool.work/python/3.14/c-api/object.html
- 例外処理 — Python 3.14.8 ドキュメント 7432
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 例外処理 テーマ 自動 ライト ダーク | 例外処理 ¶ この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになりま
...added. void PyErr_Print ( ) ¶ 次に属します: Stable ABI . PyErr_PrintEx(1) のエイリアスです。 void PyErr_WriteUnraisable ( PyObject * obj ) ¶ 次に属します: Stable ABI . 現在の例外と obj 引数で sys.unraisablehook() を呼び出します。 This utility function p...ed in: %R", obj) . If format is NULL , only the traceback is printed. Added in version 3.13. void PyErr_DisplayException ( PyObject * exc ) ¶ 次に属します: Stable ABI (バージョン 3.12 より). Print the standard traceback display of exc to sys.stderr , inc...luding chained exceptions and notes. Added in version 3.12. void PyErr_Display ( PyObject * unused , PyObject * value , PyObject * tb ) ¶ 次に属します: Stable ABI . Legacy variant of PyErr_DisplayException() . Pr... - https://man.mtool.work/python/3.14/c-api/exceptions.html
- 例外処理 — Python 3.14.8 ドキュメント 7432
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 例外処理 テーマ 自動 ライト ダーク | 例外処理 ¶ この章で説明する関数を使うと、 Python の例外の処理や例外の送出ができるようになりま
...added. void PyErr_Print ( ) ¶ 次に属します: Stable ABI . PyErr_PrintEx(1) のエイリアスです。 void PyErr_WriteUnraisable ( PyObject * obj ) ¶ 次に属します: Stable ABI . 現在の例外と obj 引数で sys.unraisablehook() を呼び出します。 This utility function p...ed in: %R", obj) . If format is NULL , only the traceback is printed. Added in version 3.13. void PyErr_DisplayException ( PyObject * exc ) ¶ 次に属します: Stable ABI (バージョン 3.12 より). Print the standard traceback display of exc to sys.stderr , inc...luding chained exceptions and notes. Added in version 3.12. void PyErr_Display ( PyObject * unused , PyObject * value , PyObject * tb ) ¶ 次に属します: Stable ABI . Legacy variant of PyErr_DisplayException() . Pr... - https://man.mtool.work/python/3.14/c-api/exceptions.html
- Type Object Structures — Python 3.14.8 ドキュメント 7380
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...する構造体: PyTypeObject 構造体は、おそらく Python オブジェクトシステムの中で最も重要な構造体の1つでしょう。型オブジェクトは PyObject_* 系や PyType_* 系の関数で扱えますが、ほとんどの Python アプリケーションにとって、さして面白みのある機能を提供しません。型...hods PyMethodDef [] X X tp_members PyMemberDef [] X tp_getset PyGetSetDef [] X X tp_base PyTypeObject * __base__ X tp_dict PyObject * __dict__ ? tp_descr_get descrgetfunc __get__ X tp_descr_set descrsetfunc __set__, __delete__ X ( tp_dictoffset ) Py_ssiz..._ X X X tp_alloc allocfunc X ? ? tp_new newfunc __new__ X X ? ? tp_free freefunc X X ? ? tp_is_gc inquiry X X < tp_bases > PyObject * __bases__ ~ < tp_mro > PyObject * __mro__ ~ [ tp_cache ] PyObject * [ tp_subclasses ] void * __subclasses__ [ tp_weaklis... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- Type Object Structures — Python 3.14.8 ドキュメント 7380
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu
...する構造体: PyTypeObject 構造体は、おそらく Python オブジェクトシステムの中で最も重要な構造体の1つでしょう。型オブジェクトは PyObject_* 系や PyType_* 系の関数で扱えますが、ほとんどの Python アプリケーションにとって、さして面白みのある機能を提供しません。型...hods PyMethodDef [] X X tp_members PyMemberDef [] X tp_getset PyGetSetDef [] X X tp_base PyTypeObject * __base__ X tp_dict PyObject * __dict__ ? tp_descr_get descrgetfunc __get__ X tp_descr_set descrsetfunc __set__, __delete__ X ( tp_dictoffset ) Py_ssiz..._ X X X tp_alloc allocfunc X ? ? tp_new newfunc __new__ X X ? ? tp_free freefunc X X ? ? tp_is_gc inquiry X X < tp_bases > PyObject * __bases__ ~ < tp_mro > PyObject * __mro__ ~ [ tp_cache ] PyObject * [ tp_subclasses ] void * __subclasses__ [ tp_weaklis... - https://man.mtool.work/python/3.14/c-api/typeobj.html
- Call プロトコル — Python 3.14.8 ドキュメント 7359
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » Call プロトコル テーマ 自動 ライト ダーク | Call プロトコル ¶ CPython supports
...l and vectorcall. The tp_call Protocol ¶ Instances of classes that set tp_call are callable. The signature of the slot is: PyObject * tp_call ( PyObject * callable , PyObject * args , PyObject * kwargs ); A call is made using a tuple for the positional a...nts. This convention is not only used by tp_call : tp_new and tp_init also pass arguments this way. To call an object, use PyObject_Call() or another call API . The Vectorcall Protocol ¶ Added in version 3.9. The vectorcall protocol was introduced in PEP...ts it. However, this is not a hard rule. Additionally, some third-party extensions use tp_call directly (rather than using PyObject_Call() ). Therefore, a class supporting vectorcall must also implement tp_call . Moreover, the callable must behave the sa... - https://man.mtool.work/python/3.14/c-api/call.html
- Call プロトコル — Python 3.14.8 ドキュメント 7359
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » Call プロトコル テーマ 自動 ライト ダーク | Call プロトコル ¶ CPython supports
...l and vectorcall. The tp_call Protocol ¶ Instances of classes that set tp_call are callable. The signature of the slot is: PyObject * tp_call ( PyObject * callable , PyObject * args , PyObject * kwargs ); A call is made using a tuple for the positional a...nts. This convention is not only used by tp_call : tp_new and tp_init also pass arguments this way. To call an object, use PyObject_Call() or another call API . The Vectorcall Protocol ¶ Added in version 3.9. The vectorcall protocol was introduced in PEP...ts it. However, this is not a hard rule. Additionally, some third-party extensions use tp_call directly (rather than using PyObject_Call() ). Therefore, a class supporting vectorcall must also implement tp_call . Moreover, the callable must behave the sa... - https://man.mtool.work/python/3.14/c-api/call.html
- 数値型プロトコル (number protocol) — Python 3.14.8 ドキュメント 7338
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » 数値型プロトコル (number protocol) テーマ 自動 ライト ダーク | 数値型プロトコル
...(number protocol) ¶ int PyNumber_Check ( PyObject * o ) ¶ 次に属します: Stable ABI . オブジェクト o が数値型プロトコルを提供している場合に 1 を返し、そうでないときには偽を返...します。この関数呼び出しは常に成功します。 バージョン 3.8 で変更: o がインデックス整数だった場合、 1 を返します。 PyObject * PyNumber_Add ( PyObject * o1 , PyObject * o2 ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . 成功すると o1 と o2 を加...算した結果を返し、失敗すると NULL を返します。Python の式 o1 + o2 と同じです。 PyObject * PyNumber_Subtract ( PyObject * o1 , PyObject * o2 ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . 成功すると o1 から... - https://man.mtool.work/python/3.14/c-api/number.html
- 数値型プロトコル (number protocol) — Python 3.14.8 ドキュメント 7338
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 抽象オブジェクトレイヤ (Abstract Objects Layer) » 数値型プロトコル (number protocol) テーマ 自動 ライト ダーク | 数値型プロトコル
...(number protocol) ¶ int PyNumber_Check ( PyObject * o ) ¶ 次に属します: Stable ABI . オブジェクト o が数値型プロトコルを提供している場合に 1 を返し、そうでないときには偽を返...します。この関数呼び出しは常に成功します。 バージョン 3.8 で変更: o がインデックス整数だった場合、 1 を返します。 PyObject * PyNumber_Add ( PyObject * o1 , PyObject * o2 ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . 成功すると o1 と o2 を加...算した結果を返し、失敗すると NULL を返します。Python の式 o1 + o2 と同じです。 PyObject * PyNumber_Subtract ( PyObject * o1 , PyObject * o2 ) ¶ 戻り値: 新しい参照。 次に属します: Stable ABI . 成功すると o1 から... - https://man.mtool.work/python/3.14/c-api/number.html