Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 31 for define (0.026 sec.)
Python 3 への拡張モジュール移植 — Python 3.6.5 ドキュメント 16339
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Pyth ... かチェックすることです。 #if PY_MAJOR_VERSION >= 3 #define IS_PY3K #endif 存在しなくなった関数については、条件 ... { PyObject * error ; }; #if PY_MAJOR_VERSION >= 3 #define GETSTATE(m) ((struct module_state*)PyModule_GetSta ... te(m)) #else #define GETSTATE(m) (&_state) static struct module_state _ ... yextension_traverse , myextension_clear , NULL }; #define INITERROR return NULL PyMODINIT_FUNC PyInit_myexte ...
https://man.plustar.jp/python/howto/cporting.html - [similar]
2. setup スクリプトを書く — Python 3.6.5 ドキュメント 9512
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの ... するインクルードディレクトリやプリプロセッサマクロの define/undefine を指定する必要がある場合、 Extension の 3 ... つのオプション引数が役に立ちます: include_dirs 、 define_macros 、 undef_macros です。 例えば、拡張モジュー ... に実践的な書き方で C コードを書く方が簡単でしょう。 define_macros および undef_macros オプションを使って、プリ ... プロセッサマクロを定義 (define) したり、定義解除 (undefine) したりもできます。 de ...
https://man.plustar.jp/python/distutils/setupscript.html - [similar]
Argument Clinic How-To — Python 3.6.5 ドキュメント 9512
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argu ... the same as the one seen by Python. Check the name defined in the PyModuleDef or PyTypeObject as appropriate ... te static PyMethodDef structure for this builtin: #define __PICKLE_PICKLER_DUMP_METHODDEF \ {"dump", (PyCFun ... _default The default value for this parameter when defined in C. Specifically, this will be the initializer ... ion you are cloning from must have been previously defined in the current file. Python コードの呼び出し ¶ Th ...
https://man.plustar.jp/python/howto/clinic.html - [similar]
1. C や C++ による Python の拡張 — Python 3.6.5 ドキュメント 8881
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... はなりません! 以下にいくつかの呼び出し例を示します: #define PY_SSIZE_T_CLEAN /* Make "s#" use Py_ssize_t rathe ... on.h" の直後に、以下の二行を必ず追加してください: #define SPAM_MODULE #include "spammodule.h" #define は、フ ... 、以下のようになっています: #ifndef Py_SPAMMODULE_H #define Py_SPAMMODULE_H #ifdef __cplusplus extern "C" { #e ... ader file for spammodule */ /* C API functions */ #define PySpam_System_NUM 0 #define PySpam_System_RETURN i ...
https://man.plustar.jp/python/extending/extending.html - [similar]
28.4. zipapp --- 実行可能な python zip 書庫を管理する — Python 3.6.5 ドキュメン... 8768
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... table launcher can be as simple as the following: #define Py_LIMITED_API 1 #include "Python.h" #define WIN32 ... ; return Py_Main ( __argc + 1 , myargv ); } If you define the WINDOWS preprocessor symbol, this will generat ... objs , exe ) >>> # Now the GUI executable >>> cc . define_macro ( 'WINDOWS' ) >>> objs = cc . compile ([ str ...
https://man.plustar.jp/python/library/zipapp.html - [similar]
3. setup 設定ファイル (setup configuration file) を書く — Python 3.6.5 ドキュメ... 8347
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの ... ) list of directories to search for header files --define (-D) C preprocessor macros to define --undef (-U) ... C preprocessor macros to undefine --swig-opts list of SWIG command line options [... ...
https://man.plustar.jp/python/distutils/configfile.html - [similar]
10. API リファレンス — Python 3.6.5 ドキュメント 8024
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの ... ォーム独立のため Unix 形式で記述する) 文字列のリスト define_macros 定義するマクロのリスト; それぞれのマクロは2 ... たは内容なしで定義する場合は None (ソースコード中で #define FOO と書く、または Unix Cコンパイラのコマンドライン ... がデフォルトで利用する標準探索パスには影響しません。 define_macro ( name [ , value=None ] ) ¶ このコンパイラオ ... され、実際の値は使っているコンパイラに依存します。 undefine_macro ( name ) ¶ このコンパイラオブジェクトで実行さ ...
https://man.plustar.jp/python/distutils/apiref.html - [similar]
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 7910
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... icit cast to destructor above is needed because we defined Custom_dealloc to take a CustomObject * argument, ... hon as the __new__() method. It is not required to define a tp_new member, and indeed many extension types w ... or を出さずに作ることが不可能になります。) We also define an initialization function which accepts arguments ... が削除されればメンバは NULL になってしまいます。 We define a single method, Custom.name() , that outputs the ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 7813
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... filename = '/temp/myapp.log' , filemode = 'w' ) # define a Handler which writes INFO messages or higher to ... 'Jackdaws love my big sphinx of quartz.' ) # Now, define a couple of other loggers which might represent ar ... 'Jackdaws love my big sphinx of quartz.' ) # Now, define a couple of other loggers which might represent ar ... ce , random import time # # Because you'll want to define the logging configurations for listener and worker ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
6. 式 (expression) — Python 3.6.5 ドキュメント 7813
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... asynchronous generator. For example: def gen (): # defines a generator function yield 123 async def agen (): ... # defines an asynchronous generator function (PEP 525) yiel ... ence of a yield expression in a function or method defined using async def further defines the function as a ... To take care of finalization, an event loop should define a finalizer function which takes an asynchronous g ...
https://man.plustar.jp/python/reference/expressions.html - [similar]
PREV 1 2 3 4 NEXT