per page, with , order by , clip by
Results of 1 - 10 of about 166 for static (0.013 sec.)
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 12528
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... e PY_SSIZE_T_CLEAN #include <Python.h> typedef struct { PyObject_HEAD /* Type-specific fields go here. */ } CustomObject ; static PyTypeObject CustomType = { . ob_base = PyVarObject_HEAD_INIT ( NULL , 0 ) . tp_name = "custom.Custom" , . tp_doc = PyDoc_ ... sicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } if ( PyModule_AddObject ... Ref ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, // Just use this while using static type ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 12528
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... e PY_SSIZE_T_CLEAN #include <Python.h> typedef struct { PyObject_HEAD /* Type-specific fields go here. */ } CustomObject ; static PyTypeObject CustomType = { . ob_base = PyVarObject_HEAD_INIT ( NULL , 0 ) . tp_name = "custom.Custom" , . tp_doc = PyDoc_ ... sicsize = sizeof ( CustomObject ), . tp_itemsize = 0 , . tp_flags = Py_TPFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } if ( PyModule_AddObject ... Ref ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static PyModuleDef_Slot custom_module_slots [] = { { Py_mod_exec , custom_module_exec }, // Just use this while using static type ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 10120
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... s kept in C static variables, which have process-wide scope. This document describes problems of such per-process state and shows a safer way ... h to per-module state where possible. This transition involves allocating space for that state, potentially switching from static types to heap types, and—perhaps most importantly—accessing per-module state from code. Who should read this ¶ This guide ... t handle this use case well. Many extension modules (and even some stdlib modules) use per-process global state, because C static variables are extremely easy to use. Thus, data that should be specific to an interpreter ends up being shared between int ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 10120
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... s kept in C static variables, which have process-wide scope. This document describes problems of such per-process state and shows a safer way ... h to per-module state where possible. This transition involves allocating space for that state, potentially switching from static types to heap types, and—perhaps most importantly—accessing per-module state from code. Who should read this ¶ This guide ... t handle this use case well. Many extension modules (and even some stdlib modules) use per-process global state, because C static variables are extremely easy to use. Thus, data that should be specific to an interpreter ends up being shared between int ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
Type Object Structures — Python 3.14.8 ドキュメント 8211
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... methods ; PyMemberDef * tp_members ; PyGetSetDef * tp_getset ; // Strong reference on a heap type, borrowed reference on a static type PyTypeObject * tp_base ; PyObject * tp_dict ; descrgetfunc tp_descr_get ; descrsetfunc tp_descr_set ; Py_ssize_t tp_d ... PyObject * tp_mro ; /* method resolution order */ PyObject * tp_cache ; /* no longer used */ void * tp_subclasses ; /* for static builtin types this is an index */ PyObject * tp_weaklist ; /* not used for static builtin types */ destructor tp_del ; /* ... d. PyObject.ob_refcnt The type object's reference count is initialized to 1 by the PyObject_HEAD_INIT macro. Note that for statically allocated type objects , the type's instances (objects whose ob_type points back to the type) do not count as referenc ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
Type Object Structures — Python 3.14.8 ドキュメント 8211
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » オブジェクト実装サポート (object implementation support) » Type Object Structures テーマ 自動 ライト ダーク | Type Object Structu ... methods ; PyMemberDef * tp_members ; PyGetSetDef * tp_getset ; // Strong reference on a heap type, borrowed reference on a static type PyTypeObject * tp_base ; PyObject * tp_dict ; descrgetfunc tp_descr_get ; descrsetfunc tp_descr_set ; Py_ssize_t tp_d ... PyObject * tp_mro ; /* method resolution order */ PyObject * tp_cache ; /* no longer used */ void * tp_subclasses ; /* for static builtin types this is an index */ PyObject * tp_weaklist ; /* not used for static builtin types */ destructor tp_del ; /* ... d. PyObject.ob_refcnt The type object's reference count is initialized to 1 by the PyObject_HEAD_INIT macro. Note that for statically allocated type objects , the type's instances (objects whose ob_type points back to the type) do not count as referenc ...
https://man.mtool.work/python/3.14/c-api/typeobj.html
1. Extending Python with C or C++ — Python 3.14.8 ドキュメント 8041
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. Extending Python with C or C++ テーマ 自動 ライト ダーク | 1. Extending Python with C or C++ ¶ It is quite easy to add n ... ill be called when the Python expression spam.system(string) is evaluated (we'll see shortly how it ends up being called): static PyObject * spam_system ( PyObject * self , PyObject * args ) { const char * command ; int sts ; if ( ! PyArg_ParseTuple ( ... ppropriate. You can also define a new exception that is unique to your module. The simplest way to do this is to declare a static global object variable at the beginning of the file: static PyObject * SpamError = NULL ; and initialize it by calling PyE ... exec function is called. For now, let's avoid the issue: we will block repeated initialization by raising an ImportError : static PyObject * SpamError = NULL ; static int spam_module_exec ( PyObject * m ) { if ( SpamError != NULL ) { PyErr_SetString ( ...
https://man.mtool.work/python/3.14/extending/extending.html
1. Extending Python with C or C++ — Python 3.14.8 ドキュメント 8041
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 1. Extending Python with C or C++ テーマ 自動 ライト ダーク | 1. Extending Python with C or C++ ¶ It is quite easy to add n ... ill be called when the Python expression spam.system(string) is evaluated (we'll see shortly how it ends up being called): static PyObject * spam_system ( PyObject * self , PyObject * args ) { const char * command ; int sts ; if ( ! PyArg_ParseTuple ( ... ppropriate. You can also define a new exception that is unique to your module. The simplest way to do this is to declare a static global object variable at the beginning of the file: static PyObject * SpamError = NULL ; and initialize it by calling PyE ... exec function is called. For now, let's avoid the issue: we will block repeated initialization by raising an ImportError : static PyObject * SpamError = NULL ; static int spam_module_exec ( PyObject * m ) { if ( SpamError != NULL ) { PyErr_SetString ( ...
https://man.mtool.work/python/3.14/extending/extending.html
typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 7609
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース ... で、このレファレンスはほとんどの Python 型チェッカーに適用できるはずです。(mypy のみに適用される部分もあるかもしれません。) Static Typing with Python コミュニティーによって書かれた、型システムの機能や便利な型関連のツール、型に関するベストプラクティスを詳 ... ith ParamSpec may not have correct __parameters__ after substitution in some cases because they are intended primarily for static type checking. バージョン 3.10 で変更: Generic can now be parameterized over parameter expressions. See ParamSpec and PEP ... , and most types in the typing module are hashable and comparable for equality. Any 型 ¶ A special kind of type is Any . A static type checker will treat every type as assignable to Any and Any as assignable to every type. これは、 Any 型の値では、任意 ...
https://man.mtool.work/python/3.14/library/typing.html
typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 7609
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース ... で、このレファレンスはほとんどの Python 型チェッカーに適用できるはずです。(mypy のみに適用される部分もあるかもしれません。) Static Typing with Python コミュニティーによって書かれた、型システムの機能や便利な型関連のツール、型に関するベストプラクティスを詳 ... ith ParamSpec may not have correct __parameters__ after substitution in some cases because they are intended primarily for static type checking. バージョン 3.10 で変更: Generic can now be parameterized over parameter expressions. See ParamSpec and PEP ... , and most types in the typing module are hashable and comparable for equality. Any 型 ¶ A special kind of type is Any . A static type checker will treat every type as assignable to Any and Any as assignable to every type. これは、 Any 型の値では、任意 ...
https://man.mtool.work/python/3.14/library/typing.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT