per page, with , order by , clip by
Results of 1 - 4 of about 4 for GetConstant (0.005 sec.)
2. 拡張の型の定義: チュートリアル 12057
2. 拡張の型の定義: チュートリアル Python では、組み込みの str 型や list 型のような Python コードから操作できる新しい型を C 拡張モジュールの作者が定義できます。 全ての拡張の型のコードはあるパターンに従うのですが、書き始める前に理解しておくべ ... { CustomObject * self ; self = ( CustomObject * ) type -> tp_alloc ( type , 0 ); if ( self != NULL ) { self -> first = Py_GetConstant ( Py_CONSTANT_EMPTY_STR ); if ( self -> first == NULL ) { Py_DECREF ( self ); return NULL ; } self -> last = Py_GetConstan ... { CustomObject * self ; self = ( CustomObject * ) type -> tp_alloc ( type , 0 ); if ( self != NULL ) { self -> first = Py_GetConstant ( Py_CONSTANT_EMPTY_STR ); if ( self -> first == NULL ) { Py_DECREF ( self ); return NULL ; } self -> last = Py_GetConstan ... { CustomObject * self ; self = ( CustomObject * ) type -> tp_alloc ( type , 0 ); if ( self != NULL ) { self -> first = Py_GetConstant ( Py_CONSTANT_EMPTY_STR ); if ( self -> first == NULL ) { Py_DECREF ( self ); return NULL ; } self -> last = Py_GetConstan ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
オブジェクトプロトコル (object protocol) 9708
オブジェクトプロトコル (object protocol) PyObject * Py_GetConstant ( unsigned int constant_id ) 次に属します: Stable ABI (バージョン 3.13 より). 定数への 強参照 を取得します。 constant_id が無効な場合、例外を設定して NULL を返します。 const ... いプロジェクトのためにのみ示しています。 Added in version 3.13. CPython では、これらの定数はすべて 不死 です。 PyObject * Py_GetConstantBorrowed ( unsigned int constant_id ) 次に属します: Stable ABI (バージョン 3.13 より). Py_GetConstant() と同様ですが、 借用 ... 参照 を返します。 この関数は主に後方互換性を目的としています。 新しいコードでは Py_GetConstant() を使うことを推奨します。 参照はインタープリタから借用され、インタープリタがファイナライズされるまで有効です。 Added in v ...
https://man.mtool.work/python/3.14/c-api/object.html
C API Stability 7822
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... mDefaultEncoding Py_Finalize() Py_FinalizeEx() Py_GenericAlias() Py_GenericAliasType Py_GetBuildInfo() Py_GetCompiler() Py_GetConstant() Py_GetConstantBorrowed() Py_GetCopyright() Py_GetExecPrefix() Py_GetPath() Py_GetPlatform() Py_GetPrefix() Py_GetProgram ...
https://man.mtool.work/python/3.14/c-api/stable.html
What's New In Python 3.13 7360
What's New In Python 3.13 エディタ : Adam Turner と Thomas Wouters この記事では Python 3.12 と比較した Python 3.13 の新機能を解説します。Python 3.13 は2024年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP 71 ... Eval_GetFrameLocals() (Mark Shannon and Tian Gao による gh-74929 での貢献。) 定数への 強参照 または 借用参照 を取得する Py_GetConstant() 関数と Py_GetConstantBorrowed() 関数が追加されました。 例えば、 Py_GetConstant(Py_CONSTANT_ZERO) は定数のゼロへの強参照を ...
https://man.mtool.work/python/3.14/whatsnew/3.13.html
PREV 1 NEXT