per page, with , order by , clip by
Results of 1 - 10 of about 39 for them (0.004 sec.)
複素数オブジェクト 12608
複素数オブジェクト Python's complex number objects are implemented as two distinct types when viewed from the C API: one is the Python object exposed to Python programs, and the other is a C structure which represents the actual complex num ... r working with both. C 構造体としての複素数 Note that the functions which accept these structures as parameters and return them as results do so by value rather than dereferencing them through pointers. This is consistent throughout the API. type Py_ ...
https://man.mtool.work/python/3.14/c-api/complex.html
The Python Profilers 12608
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 ... e would seem faster than any Python one. Instant User's Manual This section is provided for users that "don't want to read the manual." It provides a very brief overview, and allows a user to rapidly perform profiling on an existing application. To p ... Profile . run ( 're.compile("foo|bar")' , 'restats' ) The pstats.Stats class reads profile results from a file and formats them in various ways. The files cProfile and profile can also be invoked as a script to profile another script. For example: py ... ts' ) p . strip_dirs () . sort_stats ( - 1 ) . print_stats () The strip_dirs() method removed the extraneous path from all the module names. The sort_stats() method sorted all the entries according to the standard module/line/name string that is prin ...
https://man.mtool.work/python/3.14/library/profile.html
Pythonモジュール索引 10932
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 ... binary and various ASCII-encoded binary representations. bisect Array bisection algorithms for binary searching. builtins The module that provides the built-in namespace. bz2 Interfaces for bzip2 compression and decompression. c calendar Functions f ... f the Unix cal program. cgi 非推奨: Removed in 3.13. cgitb 非推奨: Removed in 3.13. chunk 非推奨: Removed in 3.13. cmath Mathematical functions for complex numbers. cmd Build line-oriented command interpreters. code Facilities to implement read-eval- ... 非推奨: Removed in 3.13. marshal Convert Python objects to streams of bytes and back (with different constraints). math Mathematical functions (sin() etc.). mimetypes Mapping of filename extensions to MIME types. mmap Interface to memory-mapped file ...
https://man.mtool.work/python/3.14/py-modindex.html
1. Extending Python with C or C++ 9804
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 ... odule.c . (Historically, if a module is called spam , the C file containing its implementation is called spammodule.c ; if the module name is very long, like spammify , the module name can be just spammify.c .) The first two lines of our file can be: ... define PY_SSIZE_T_CLEAN #include <Python.h> which pulls in the Python API (you can add a comment describing the purpose of the module and a copyright notice if you like). 注釈 Since Python may define some pre-processor definitions which affect the st ... the C function. The C function always has two arguments, conventionally named self and args . The self argument points to the module object for module-level functions; for a method it would point to the object instance. The args argument will be a p ...
https://man.mtool.work/python/3.14/extending/extending.html
拡張 9804
拡張 asyncio を拡張する主な方法は、独自の イベントループ クラスを書くことです。 asyncio には、この作業を簡単にするための補助機能があります。 注釈 Third-parties should reuse existing asyncio code with caution, a new Python version is free to ... nt loop asyncio.AbstractEventLoop declares very many methods. See イベントループのメソッド for the full list. Implementing them all from scratch is a tedious job. asyncio.BaseEventLoop を継承すれば、多くの共通メソッドの実装をそのまま利用できます。 そ ...
https://man.mtool.work/python/3.14/library/asyncio-extending.html
optparse --- コマンドラインオプションのパーサー 9240
optparse --- コマンドラインオプションのパーサー ソースコード: Lib/optparse.py 引数解析ライブラリの選択 標準ライブラリには、引数を解析するライブラリが三つあります。 getopt : C の手続き型の getopt API に忠実に対応するモジュールです。 optparse ... OptionGroup ( parser , "Dangerous Options" , "Caution: use these options at your own risk. " "It is believed that some of them bite." ) group . add_option ( "-g" , action = "store_true" , help = "Group option." ) parser . add_option_group ( group ) ... expert [default: intermediate] Dangerous Options: Caution: use these options at your own risk. It is believed that some of them bite. -g Group option. さらにサンプルを拡張して、複数のグループを使うようにしてみます: group = OptionGroup ( parser , "Dan ... gerous Options" , "Caution: use these options at your own risk. " "It is believed that some of them bite." ) group . add_option ( "-g" , action = "store_true" , help = "Group option." ) parser . add_option_group ( group ) ...
https://man.mtool.work/python/3.14/library/optparse.html
termios --- POSIX スタイルの端末制御 9240
termios --- POSIX スタイルの端末制御 このモジュールでは端末 I/O 制御のための POSIX 準拠の関数呼び出しインターフェースを提供します。これら呼び出しのための完全な記述については、 Unix マニュアルページの termios(3) を参照してください。これは PO ... ts defined in the termios module. termios. VMIN termios. VTIME Indices into the cc array controlling a non-canonical read: the minimum number of characters to read and the timeout in tenths of a second, respectively. termios. tcsetattr ( fd , when , ... E ioctl() requests for querying the tty window size. Not defined on all platforms; tcgetwinsize() requires at least one of them. termios. tcsetwinsize ( fd , winsize ) ファイル記述子 fd の tty ウィンドウサイズを winsize に設定します。 winsize は tcge ...
https://man.mtool.work/python/3.14/library/termios.html
拡張モジュールの定義 8692
拡張モジュールの定義 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 ... the creation process into several phases: Before any substantial code is executed, Python can determine which capabilities the module supports, and it can adjust the environment or refuse loading an incompatible extension. By default, Python itself c ... reates the module object -- that is, it does the equivalent of object.__new__() for classes. It also sets initial attributes like __pa ... ckage__ and __loader__ . Afterwards, the module object is initialized using extension-specific code -- the equivalent of __init__() on classes. This is called multi ...
https://man.mtool.work/python/3.14/c-api/extension-modules.html
インタープリタの初期化と終了処理 8128
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... e of loaded modules ( sys.modules ), and creates the fundamental modules builtins , __main__ and sys . It also initializes the module search path ( sys.path ). It does not set sys.argv ; use the Python Initialization Configuration API for that. This ... 度設定した値を、後から正しく変更できるかどうかが設定によって異なるためです。 int Py_FrozenMain ( int argc , char * * argv ) The main program for a "frozen" Python program (an executable that embeds the interpreter together with the bytecode of the pro ... have been registered in PyImport_FrozenModules before calling this function; it is a fatal error if __main__ is not among them. argc and argv are byte strings like the arguments of a C program's main function, and are passed to the interpreter with ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
はじめに 8128
はじめに Python のアプリケーションプログラマー向けインターフェース (API) は、C と C++ のプログラマーに、Python インタープリタへのさまざまなレベルのアクセスを提供します。 C++ からも同様に使えますが、簡潔に Python/C API と呼びます。 Python/C ... _BIG_ENDIAN PY_LITTLE_ENDIAN Constants describing the byte order of the platform that Python was built for. Exactly one of them is 1 and the other is 0 . アサーションのユーティリティ Py_UNREACHABLE ( ) 設計上、到達することのないコードパスで使ってくだ ... objects, those references are released. Those other objects may be deallocated in turn, if there are no more references to them, and so on. (There's an obvious problem with objects that reference each other here; for now, the solution is "don't do th ... at.") Reference counts are always manipulated explicitly. The normal way is to use the macro Py_INCREF() to take a new reference to an object (i.e. increment its reference count by one), and Py_DECREF() to rele ...
https://man.mtool.work/python/3.14/c-api/intro.html
PREV 1 2 3 4 NEXT