Results of 1 - 10 of about 15 for definition (0.006 sec.)
- モジュールオブジェクト (module object) 14768
- モジュールオブジェクト (module object) PyTypeObject PyModule_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のモジュール型を表します。 Python プログラムには types.ModuleType として公開されています。 int PyModule_C
...ァイル名に対しては UnicodeEncodeError を送出します。これの代わりに PyModule_GetFilenameObject() を使用してください。 Module definitions The functions in the previous section work on any module object, including modules imported from Python code. Modules def...ined using the C API typically use a module definition , PyModuleDef -- a statically allocated, constant “description" of how a module should be created. The definition is usual...e 拡張モジュールの定義 for details). It is also used to create extension modules dynamically . Unlike PyModule_New() , the definition allows management of module state -- a piece of memory that is allocated and cleared together with the module object. Unli... - https://man.mtool.work/python/3.14/c-api/module.html
- モジュールのインポート 9561
- モジュールのインポート PyObject * PyImport_ImportModule ( const char * name ) 戻り値: 新しい参照。 次に属します: Stable ABI . PyImport_Import() のラッパーで、引数として PyObject * の代わりに const char * を受け取ります。 PyObject * PyImport
...と同様ですが、名前は Unicode オブジェクトではなく UTF-8 エンコードの文字列です。 struct _frozen This is the structure type definition for frozen module descriptors, as generated by the freeze utility (see Tools/freeze/ in the Python source distribution). I...ts definition, found in Include/import.h , is: struct _frozen { const char * name ; /* ASCII encoded string */ const unsigned char * cod... - https://man.mtool.work/python/3.14/c-api/import.html
- The Python Profilers 9213
- The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how
...oice. print_stats ( * restrictions ) This method for the Stats class prints out a report as described in the profile.run() definition. The order of the printing is based on the last sort_stats() operation done on the object (subject to caveats in add() and...that called each function in the profiled database. The ordering is identical to that provided by print_stats() , and the definition of the restricting argument is also identical. Each caller is reported on its own line. The format differs slightly depend... - https://man.mtool.work/python/3.14/library/profile.html
- typing --- 型ヒントのサポート 9213
- typing --- 型ヒントのサポート Added in version 3.5. ソースコード: Lib/typing.py 注釈 Python ランタイムは、関数や変数の型アノテーションを強制しません。型アノテーションは、 type checkers や IDE、linterなどのサードパーティーツールで使われます。
...# SyntaxError が発生する class Point2D ( TypedDict ): in : int # 'in' はキーワード x - y : int # ハイフンを含む名前 class Definition ( TypedDict ): __schema : str # `_Definition__schema` に変換される # OK、関数呼び出し形式 Point2D = TypedDict ( 'Point2D'..., { 'in' : int , 'x-y' : int }) Definition = TypedDict ( 'Definition' , { '__schema' : str }) # 名前が変換されない デフォルトでは TypedDict のすべてのキーが必須です。...ます。 使用例を示します。 class Point3D ( Point2D ): z : int Point3D has three items: x , y and z . It is equivalent to this definition: class Point3D ( TypedDict ): x : int y : int z : int TypedDict は、 Generic を除いて TypedDict でないクラスを継承できませ... - https://man.mtool.work/python/3.14/library/typing.html
- 拡張モジュールの定義 8864
- 拡張モジュールの定義 A C extension for CPython is a shared library (for example, a .so file on Linux, .pyd DLL on Windows), which is loadable into the Python process (for example, it is compiled with compatible compiler settings), and which
...は https://setuptools.pypa.io/en/latest/setuptools.html にあります。 Normally, the initialization function returns a module definition initialized using PyModuleDef_Init() . This allows splitting the creation process into several phases: Before any substant... - https://man.mtool.work/python/3.14/c-api/extension-modules.html
- C API Stability 8168
- C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修
...g stability as Python's data structures are improved, but possibly reducing performance. By leaving out the Py_LIMITED_API definition, it is possible to compile a Limited API extension with a version-specific ABI. This can improve performance for that Pyth...MITED_API is not a complete guarantee that code conforms to the Limited API or the Stable ABI . Py_LIMITED_API only covers definitions, but an API also includes other issues, such as expected semantics. One issue that Py_LIMITED_API does not guard against... - https://man.mtool.work/python/3.14/c-api/stable.html
- 1. Extending Python with C or C++ 8168
- 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
...describing the purpose of the module and a copyright notice if you like). 注釈 Since Python may define some pre-processor definitions which affect the standard headers on some systems, you must include Python.h before any standard headers are included. #d...PyArg_ParseTupleAndKeywords() to parse the arguments to such a function. The method table must be referenced in the module definition structure: static struct PyModuleDef spam_module = { ... . m_methods = spam_methods , ... }; This structure, in turn, must...reter imports its module spam for the first time. (See below for comments about embedding Python.) A pointer to the module definition must be returned via PyModuleDef_Init() , so that the import machinery can create the module and store it in sys.modules .... - https://man.mtool.work/python/3.14/extending/extending.html
- C API 拡張のフリースレッド対応 8168
- C API 拡張のフリースレッド対応 CPython 3.13 から、 global interpreter lock (GIL) を無効にして実行する free threading という構成がサポートされています。 このドキュメントでは、C API を使う拡張をフリースレッドに対応させる方法を説明します。 C か
...初期化 Extensions that use multi-phase initialization (i.e., PyModuleDef_Init() ) should add a Py_mod_gil slot in the module definition. If your extension supports older versions of CPython, you should guard the slot with a PY_VERSION_HEX check. static struc... - https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
- base64 --- Base16, Base32, Base64, Base85 データのエンコード 8168
- base64 --- Base16, Base32, Base64, Base85 データのエンコード ソースコード: Lib/base64.py このモジュールは、バイナリデータを表示可能な ASCII 文字にエンコードし、エンコードされたデータをバイナリデータに戻す関数を提供します。 RFC 4648 で 規定さ
...cifying and Describing the Format of Internet Message Bodies Section 5.2, "Base64 Content-Transfer-Encoding," provides the definition of the base64 encoding. ISO 32000-2 Portable document format - Part 2: PDF 2.0 第 7.4.3 節 "ASCII85Decode Filter" は、PDF... - https://man.mtool.work/python/3.14/library/base64.html
- Python で Curses プログラミング 7819
- Python で Curses プログラミング Author : A.M. Kuchling, Eric S. Raymond Release : 2.04 概要 このドキュメントでは curses 拡張モジュールでテキストモードディスプレイを制御する方法について記述します。 curses ってなに? curses ライブラリは、VT100
...As I said before, a color pair consists of a foreground and background color. The init_pair(n, f, b) function changes the definition of color pair n , to foreground color f and background color b. Color pair 0 is hard-wired to white on black, and cannot b...することもできます。 stdscr . addstr ( 0 , 0 , "RED ALERT!" , curses . color_pair ( 1 )) Very fancy terminals can change the definitions of the actual colors to a given RGB value. This lets you change color 1, which is usually red, to purple or blue or any o... - https://man.mtool.work/python/3.14/howto/curses.html