Results of 1 - 8 of about 8 for compiling (0.006 sec.)
- 参照カウント 13320
- 参照カウント このセクションにある関数とマクロは、 Python オブジェクトの参照カウントの管理に使用されます。 Py_ssize_t Py_REFCNT ( PyObject * o ) 次に属します: Stable ABI (バージョン 3.14 より). Python オブジェクト o の参照カウントを取得します
...const PyObject * ではなくなりました。 void Py_SET_REFCNT ( PyObject * o , Py_ssize_t refcnt ) This macro is available when compiling for the Stable ABI (バージョン 3.9 より). オブジェクト o の参照カウントを refcnt に設定します。 フリースレッドな Python ビ...9. バージョン 3.12 で変更: 永続オブジェクトは変更されません。 void Py_INCREF ( PyObject * o ) This macro is available when compiling for the Stable ABI . オブジェクト o への新しい 強参照 を取得し、それが使用中で破棄されてはならないことを示します。 この関数...。 バージョン 3.12 で変更: 永続オブジェクトは変更されません。 void Py_XINCREF ( PyObject * o ) This macro is available when compiling for the Stable ABI . Py_INCREF() と同様ですが、オブジェクト o は NULL でも構いません。 その場合は何もしません。 Py_XNewRef... - https://man.mtool.work/python/3.14/c-api/refcounting.html
- C API Stability 10013
- C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修
...g the PY_VERSION_HEX macro directly, hardcode a minimum minor version (e.g. 0x030A0000 for Python 3.10) for stability when compiling with future Python versions. You can also define Py_LIMITED_API to 3 . This works the same as 0x03020000 (Python 3.2, the...extension with a version-specific ABI. This can improve performance for that Python version, but will limit compatibility. Compiling with Py_LIMITED_API will then yield an extension that can be distributed where a version-specific one is not available – f...or example, for prereleases of an upcoming Python version. Limited API Caveats Note that compiling with Py_LIMITED_API is not a complete guarantee that code conforms to the Limited API or the Stable ABI . Py_LIMITED_API o... - https://man.mtool.work/python/3.14/c-api/stable.html
- スレッド状態とグローバルインタープリタロック 9362
- スレッド状態とグローバルインタープリタロック CPython の フリースレッドビルド を除き、Python インタープリタは一般にスレッドセーフではありません。 マルチスレッドの Python プログラムをサポートするため、 グローバルインタープリタロック 、または
...のマクロは、デッドロックを防ぐために フリースレッドビルド でも必要です。 Py_BEGIN_ALLOW_THREADS This macro is available when compiling for the Stable ABI . このマクロを展開すると { PyThreadState *_save; _save = PyEval_SaveThread(); になります。マクロに開き波...せなければなりません。マクロについての詳しい議論は上記を参照してください。 Py_END_ALLOW_THREADS This macro is available when compiling for the Stable ABI . このマクロを展開すると PyEval_RestoreThread(_save); } になります。 閉じ波括弧を含むため、事前の Py_BE...対応させなければなりません。 このマクロについては上の説明を参照してください。 Py_BLOCK_THREADS This macro is available when compiling for the Stable ABI . このマクロを展開すると PyEval_RestoreThread(_save); になります: 閉じ波括弧のない Py_END_ALLOW_THREADS... - https://man.mtool.work/python/3.14/c-api/threads.html
- Pythonモジュール索引 8260
- Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i
...t base classes for containers colorsys Conversion functions between RGB and other color systems. compileall Tools for byte-compiling all Python source files in a directory tree. compression compression.zstd Low-level interface to compression and decompres... - https://man.mtool.work/python/3.14/py-modindex.html
- 1. Extending Python with C or C++ 8043
- 1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec
...et you write Python code to interface with C code and are more portable between implementations of Python than writing and compiling a C extension module. 1.1. A Simple Example Let's create an extension module called spam (the favorite food of Monty Pytho...ly read as an example. 1.5. Compilation and Linkage There are two more things to do before you can use your new extension: compiling and linking it with the Python system. If you use dynamic loading, the details may depend on the style of dynamic loading... - https://man.mtool.work/python/3.14/extending/extending.html
- はじめに 7808
- はじめに Python のアプリケーションプログラマー向けインターフェース (API) は、C と C++ のプログラマーに、Python インタープリタへのさまざまなレベルのアクセスを提供します。 C++ からも同様に使えますが、簡潔に Python/C API と呼びます。 Python/C
...ンループの低レベルプロファイリングが利用可能です。よく使われるビルドについてのみ、この節の残りの部分で説明します。 Py_DEBUG Compiling the interpreter with the Py_DEBUG macro defined produces what is generally meant by a debug build of Python . Py_DEBUG is... - https://man.mtool.work/python/3.14/c-api/intro.html
- 共通のオブジェクト構造体 (common object structure) 7808
- 共通のオブジェクト構造体 (common object structure) Python のオブジェクト型の定義には、多数の構造体が使われます。 この節では、それらの構造体と使い方を説明します。 基本のオブジェクト型とマクロ すべての Python オブジェクトは、メモリ上の表現の先
...pe と同等です。 Added in version 3.9. void Py_SET_TYPE ( PyObject * o , PyTypeObject * type ) This macro is available when compiling for the Stable ABI (バージョン 3.9 より). オブジェクト o の型を type に設定します。 検証も参照カウントの操作も行いません。... - https://man.mtool.work/python/3.14/c-api/structures.html
- ctypes --- Python 用の外部関数ライブラリ 7591
- ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために
...す。 ctypesリファレンス 共有ライブラリを見つける When programming in a compiled language, shared libraries are accessed when compiling/linking a program, and when the program is run. The purpose of the find_library() function is to locate a library in a way... - https://man.mtool.work/python/3.14/library/ctypes.html
PREV
1
NEXT