per page, with , order by , clip by
Results of 1 - 10 of about 34 for GetState (0.007 sec.)
拡張モジュールを分離する — Python 3.14.8 ドキュメント 11679
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... s straightforward. Functions get the module object as their first argument; for extracting the state, you can use PyModule_GetState : static PyObject * func ( PyObject * module , PyObject * args ) { my_struct * state = ( my_struct * ) PyModule_GetState ( ... module ); if ( state == NULL ) { return NULL ; } // ... rest of logic } 注釈 PyModule_GetState may return NULL without setting an exception if there is no module state, i.e. PyModuleDef.m_size was zero. In your own mo ... defined with PyType_FromModuleAndSpec() , you can call PyType_GetModule() to get the associated module, and then PyModule_GetState() to get the module's state. To save a some tedious error-handling boilerplate code, you can combine these two steps with ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
拡張モジュールを分離する — Python 3.14.8 ドキュメント 11679
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » 拡張モジュールを分離する テーマ 自動 ライト ダーク | 拡張モジュールを分離する ¶ 概要 Traditionally, state belonging to Python extension modules wa ... s straightforward. Functions get the module object as their first argument; for extracting the state, you can use PyModule_GetState : static PyObject * func ( PyObject * module , PyObject * args ) { my_struct * state = ( my_struct * ) PyModule_GetState ( ... module ); if ( state == NULL ) { return NULL ; } // ... rest of logic } 注釈 PyModule_GetState may return NULL without setting an exception if there is no module state, i.e. PyModuleDef.m_size was zero. In your own mo ... defined with PyType_FromModuleAndSpec() , you can call PyType_GetModule() to get the associated module, and then PyModule_GetState() to get the module's state. To save a some tedious error-handling boilerplate code, you can combine these two steps with ...
https://man.mtool.work/python/3.14/howto/isolating-extensions.html
モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 10928
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ ... dule is renamed or destroyed. Note that Python code may rename a module by setting its __name__ attribute. void * PyModule_GetState ( PyObject * module ) ¶ 次に属します: Stable ABI . Return the "state" of the module, that is, a pointer to the block of me ... RVAR is used. Py_ssize_t m_size ¶ Module state may be kept in a per-module memory area that can be retrieved with PyModule_GetState() , rather than in static globals. This makes modules safe for use in multiple sub-interpreters. This memory area is alloc ... on). More precisely, this function is not called if m_size is greater than 0 and the module state (as returned by PyModule_GetState() ) is NULL . バージョン 3.9 で変更: No longer called before the module state is allocated. inquiry m_clear ¶ A clear func ...
https://man.mtool.work/python/3.14/c-api/module.html
random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 10433
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/ ... 3.11 で変更: seed は次の型の内のいずれかでなければなりません: None 、 int 、 float 、 str 、 bytes 、 bytearray 。 random. getstate ( ) ¶ 乱数生成器の現在の内部状態を記憶したオブジェクトを返します。このオブジェクトを setstate() に渡して内部状態を復元する ... ことができます。 random. setstate ( state ) ¶ state は予め getstate() を呼び出して得ておかなくてはなりません。 setstate() は getstate() が呼び出された時の乱数生成器の内部状態を復元します。 バ ... eed ( a = None , version = 2 ) ¶ Override this method in subclasses to customise the seed() behaviour of Random instances. getstate ( ) ¶ Override this method in subclasses to customise the getstate() behaviour of Random instances. setstate ( state ) ¶ O ...
https://man.mtool.work/python/3.14/library/random.html
random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 10433
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/ ... 3.11 で変更: seed は次の型の内のいずれかでなければなりません: None 、 int 、 float 、 str 、 bytes 、 bytearray 。 random. getstate ( ) ¶ 乱数生成器の現在の内部状態を記憶したオブジェクトを返します。このオブジェクトを setstate() に渡して内部状態を復元する ... ことができます。 random. setstate ( state ) ¶ state は予め getstate() を呼び出して得ておかなくてはなりません。 setstate() は getstate() が呼び出された時の乱数生成器の内部状態を復元します。 バ ... eed ( a = None , version = 2 ) ¶ Override this method in subclasses to customise the seed() behaviour of Random instances. getstate ( ) ¶ Override this method in subclasses to customise the getstate() behaviour of Random instances. setstate ( state ) ¶ O ...
https://man.mtool.work/python/3.14/library/random.html
モジュールオブジェクト (module object) — Python 3.14.8 ドキュメント 10177
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » モジュールオブジェクト (module object) テーマ 自動 ライト ダーク | モジュールオブジェ ... dule is renamed or destroyed. Note that Python code may rename a module by setting its __name__ attribute. void * PyModule_GetState ( PyObject * module ) ¶ 次に属します: Stable ABI . Return the "state" of the module, that is, a pointer to the block of me ... RVAR is used. Py_ssize_t m_size ¶ Module state may be kept in a per-module memory area that can be retrieved with PyModule_GetState() , rather than in static globals. This makes modules safe for use in multiple sub-interpreters. This memory area is alloc ... on). More precisely, this function is not called if m_size is greater than 0 and the module state (as returned by PyModule_GetState() ) is NULL . バージョン 3.9 で変更: No longer called before the module state is allocated. inquiry m_clear ¶ A clear func ...
https://man.mtool.work/python/3.14/c-api/module.html
pickle --- Python オブジェクトの直列化 — Python 3.14.8 ドキュメント 10177
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » pickle --- Python オブジェクトの直列化 テーマ 自動 ライト ダーク | pickle --- Python オブジェクトの直列化 ¶ ソース ... たものは含まない) モジュールのトップレベルで定義されているクラス instances of such classes for which the result of calling __getstate__() is picklable (see section クラスインスタンスの pickle 化 for details). pickle 化できないオブジェクトを pickle 化しよう ... ython 3.6以前のプロトコル 2 と 3 では、 __getnewargs_ex__() の代わりに __getnewargs__() が呼び出されていました。 object. __getstate__ ( ) ¶ Classes can further influence how their instances are pickled by overriding the method __getstate__() . It is call ... t names to slot values described in the previous bullet. バージョン 3.11 で変更: Added the default implementation of the __getstate__() method in the object class. object. __setstate__ ( state ) ¶ 非 pickle 化に際して、クラスが __setstate__() を定義してい ...
https://man.mtool.work/python/3.14/library/pickle.html
pickle --- Python オブジェクトの直列化 — Python 3.14.8 ドキュメント 10177
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » pickle --- Python オブジェクトの直列化 テーマ 自動 ライト ダーク | pickle --- Python オブジェクトの直列化 ¶ ソース ... たものは含まない) モジュールのトップレベルで定義されているクラス instances of such classes for which the result of calling __getstate__() is picklable (see section クラスインスタンスの pickle 化 for details). pickle 化できないオブジェクトを pickle 化しよう ... ython 3.6以前のプロトコル 2 と 3 では、 __getnewargs_ex__() の代わりに __getnewargs__() が呼び出されていました。 object. __getstate__ ( ) ¶ Classes can further influence how their instances are pickled by overriding the method __getstate__() . It is call ... t names to slot values described in the previous bullet. バージョン 3.11 で変更: Added the default implementation of the __getstate__() method in the object class. object. __setstate__ ( state ) ¶ 非 pickle 化に際して、クラスが __setstate__() を定義してい ...
https://man.mtool.work/python/3.14/library/pickle.html
codecs --- codec レジストリと基底クラス — Python 3.14.8 ドキュメント 8164
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » バイナリデータ処理 » codecs --- codec レジストリと基底クラス テーマ 自動 ライト ダーク | codecs --- codec レジストリと基底クラス ¶ ... True) を呼び出して、必要に応じて空バイト列またはテキスト文字列を渡すことにより、エンコーダをリセットし、出力を取得します。 getstate ( ) ¶ エンコーダの現在の状態を返します。それは必ず整数でなければなりません。実装は、 0 が最も一般的な状態であることを保証す ... ド化することによって整数に変換することができます。) setstate ( state ) ¶ エンコーダの状態を state にセットします。 state は getstate() によって返されたエンコーダ状態でなければなりません。 IncrementalDecoder オブジェクト ¶ IncrementalDecoder クラスは入力を ... エラーの取り扱いを開始しなければなりません(例外を送出するかもしれません)。 reset ( ) ¶ デコーダを初期状態にリセットします。 getstate ( ) ¶ デコーダの現在の状態を返します。これは2要素を含むタプルでなければなりません。1番目はまだデコードされていない入力を含 ...
https://man.mtool.work/python/3.14/library/codecs.html
codecs --- codec レジストリと基底クラス — Python 3.14.8 ドキュメント 8164
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » バイナリデータ処理 » codecs --- codec レジストリと基底クラス テーマ 自動 ライト ダーク | codecs --- codec レジストリと基底クラス ¶ ... True) を呼び出して、必要に応じて空バイト列またはテキスト文字列を渡すことにより、エンコーダをリセットし、出力を取得します。 getstate ( ) ¶ エンコーダの現在の状態を返します。それは必ず整数でなければなりません。実装は、 0 が最も一般的な状態であることを保証す ... ド化することによって整数に変換することができます。) setstate ( state ) ¶ エンコーダの状態を state にセットします。 state は getstate() によって返されたエンコーダ状態でなければなりません。 IncrementalDecoder オブジェクト ¶ IncrementalDecoder クラスは入力を ... エラーの取り扱いを開始しなければなりません(例外を送出するかもしれません)。 reset ( ) ¶ デコーダを初期状態にリセットします。 getstate ( ) ¶ デコーダの現在の状態を返します。これは2要素を含むタプルでなければなりません。1番目はまだデコードされていない入力を含 ...
https://man.mtool.work/python/3.14/library/codecs.html
PREV 1 2 3 4 NEXT