Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 30 for static (0.025 sec.)
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 15742
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... Type-specific fields go here. */ } CustomObject ; static PyTypeObject CustomType = { PyVarObject_HEAD_INIT ... PFLAGS_DEFAULT , . tp_new = PyType_GenericNew , }; static PyModuleDef custommodule = { PyModuleDef_HEAD_INIT ... PyFloatObject ; 2つ目は方オブジェクトの定義です。 static PyTypeObject CustomType = { PyVarObject_HEAD_INIT ... st ; /* last name */ int number ; } CustomObject ; static void Custom_dealloc ( CustomObject * self ) { Py_X ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
Python 3 への拡張モジュール移植 — Python 3.6.5 ドキュメント 10527
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Pyth ... hon.h" #include "bytesobject.h" /* text example */ static PyObject * say_hello ( PyObject * self , PyObject ... " , name ); return result ; } /* just a forward */ static char * do_encode ( PyObject * ); /* bytes example ... */ static PyObject * encode_object ( PyObject * self , PyObj ... e_GetState(m)) #else #define GETSTATE(m) (&_state) static struct module_state _state ; #endif static PyObjec ...
https://man.plustar.jp/python/howto/cporting.html - [similar]
1. C や C++ による Python の拡張 — Python 3.6.5 ドキュメント 9617
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... 最終的にどのように呼び出すかは、後ですぐわかります): static PyObject * spam_system ( PyObject * self , PyObjec ... の先頭部分に静的なオブジェクト変数の宣言を行います: static PyObject * SpamError ; そして、モジュールの初期化関 ... ジュールで例外 spam.error を送出することができます: static PyObject * spam_system ( PyObject * self , PyObjec ... ドテーブル (method table)" に列挙する必要があります: static PyMethodDef SpamMethods [] = { ... { "system" , sp ...
https://man.plustar.jp/python/extending/extending.html - [similar]
Argument Clinic How-To — Python 3.6.5 ドキュメント 9552
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argu ... the C file, in the same way that include files and statics go at the top. (In our sample code we'll just sho ... to the open file. [clinic start generated code]*/ static PyObject * _pickle_Pickler_dump ( PicklerObject * ... find a preprocessor macro defining the appropriate static PyMethodDef structure for this builtin: #define __ ... _dump, METH_O, __pickle_Pickler_dump__doc__}, This static structure should be exactly the same as the existi ...
https://man.plustar.jp/python/howto/clinic.html - [similar]
3. Defining Extension Types: Assorted Topics — Python 3.6.5 ドキュメント 9162
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... 要があります。この関数の例は、以下のようなものです: static void newdatatype_dealloc ( newdatatypeobject * obj ... rr_Restore() 関数を使うことによって可能になります: static void my_dealloc ( PyObject * obj ) { MyObject * se ... 返す必要があります。簡単な例は以下のようなものです: static PyObject * newdatatype_repr ( newdatatypeobject * ... tp_repr ハンドラが使われます。 以下は簡単な例です: static PyObject * newdatatype_str ( newdatatypeobject * o ...
https://man.plustar.jp/python/extending/newtypes.html - [similar]
1. 他のアプリケーションへの Python の埋め込み — Python 3.6.5 ドキュメント 8269
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... ードを書くと考えてください。例えば以下のようにです: static int numargs = 0 ; /* Return the number of argument ... s of the application command line */ static PyObject * emb_numargs ( PyObject * self , PyObjec ... eturn NULL ; return PyLong_FromLong ( numargs ); } static PyMethodDef EmbMethods [] = { { "numargs" , emb_nu ... by the process." }, { NULL , NULL , 0 , NULL } }; static PyModuleDef EmbModule = { PyModuleDef_HEAD_INIT , ...
https://man.plustar.jp/python/extending/embedding.html - [similar]
DTrace と SystemTap で CPython を測定する — Python 3.6.5 ドキュメント 8269
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » DTra ... ine line On Linux, you can verify if the SystemTap static markers are present in the built binary by seeing ... way to use the SystemTap integration is to use the static markers directly. This requires you to explicitly ... which hides some of the lower-level details of the static markers. Here is a tapset file, based on a non-sha ... ll hierarchy, without needing to directly name the static markers: probe python.function.entry { printf("%s ...
https://man.plustar.jp/python/howto/instrumentation.html - [similar]
Python 2 から Python 3 への移植 — Python 3.6.5 ドキュメント 8074
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Pyth ... くれます; pip install tox ) Consider using optional static type checking to make sure your type usage works i ... にも組み立てられるでしょう。 Consider using optional static type checking ¶ Another way to help port your code ... is to use a static type checker like mypy or pytype on your code. The ... your code is running under Python 3. By running a static type checker twice like this you can discover if y ...
https://man.plustar.jp/python/howto/pyporting.html - [similar]
29.12. inspect --- 活動中のオブジェクトの情報を取得する — Python 3.6.5 ドキュメ... 7814
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... mentation tools, this can be inconvenient. getattr_static() has the same signature as getattr() but avoids e ... code when it fetches attributes. inspect. getattr_static ( obj , attr , default=None ) ¶ Retrieve attribute ... d instance members. バージョン 3.2 で追加. getattr_static() does not resolve descriptors, for example slot d ... descriptor , wrapper_descriptor ) result = getattr_static ( some_object , 'foo' ) if type ( result ) in desc ...
https://man.plustar.jp/python/library/inspect.html - [similar]
共通のオブジェクト構造体 (common object structure) — Python 3.6.5 ドキュメント 7749
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... ド (class method) を生成するために使われます。 METH_STATIC ¶ メソッドの最初の引数には、型のインスタンスではな ... く NULL が渡されます。このフラグは、 staticmethod() を使って生成するのと同じ 静的メソッド (sta ...
https://man.plustar.jp/python/c-api/structures.html - [similar]
PREV 1 2 3 NEXT