per page, with , order by , clip by
Results of 1 - 10 of about 21 for multi (0.004 sec.)
xmlrpc.server --- 基本的な XML-RPC サーバー 14579
xmlrpc.server --- 基本的な XML-RPC サーバー ソースコード: Lib/xmlrpc/server.py xmlrpc.server モジュールは、Python で記述する XML-RPC サーバーの基本的なフレームワークを提供します。 SimpleXMLRPCServer を使うと独立したサーバーを作成でき、 CGIX ... クション関数、 system.listMethods 、 system.methodHelp 、 system.methodSignature を登録します。 SimpleXMLRPCServer. register_multicall_functions ( ) XML-RPC における複数の要求を処理する関数 system.multicall を登録します。 SimpleXMLRPCRequestHandler. rpc ... mbda x , y : x + y , 'add' ) server . register_instance ( ExampleService (), allow_dotted_names = True ) server . register_multicall_functions () print ( 'Serving XML-RPC on localhost port 8000' ) try : server . serve_forever () except KeyboardInterru ... http://localhost:8000" ) try : print ( server . currentTime . getCurrentTime ()) except Error as v : print ( "ERROR" , v ) multi = MultiCall ( server ) multi . getData () multi . pow ( 2 , 9 ) multi . add ( 1 , 2 ) try : for response in multi (): prin ...
https://man.mtool.work/python/3.14/library/xmlrpc.server.html
Python プロセス内の複数のインタープリタ 10773
Python プロセス内の複数のインタープリタ ほとんどの場合は埋め込む Python インタプリタは1つだけですが、いくつかの場合に同一プロセス内、あるいは同一スレッド内で、複数の独立したインタプリタを作成する必要があります。 これを可能にするのがサブイン ... ブジェクト」アロケーターの状態を使います。 それ以外の場合は、メインインタープリタの状態を共有して使います。 0 の場合、 check_multi_interp_extensions は 1 (ゼロ以外) でなければなりません。 1 の場合、 gil は PyInterpreterConfig_OWN_GIL であってはなりません ... スレッドを作成しません。 それ以外の場合は、 allow_threads がゼロでない限り、デーモンスレッドの作成が許可されます。 int check_multi_interp_extensions 0 の場合、このサブインタープリタが現在アクティブなスレッドでは、従来の単相初期化モジュールを含め、すべて ... ールをインポートできます。 それ以外の場合は、多相初期化を使う拡張モジュールのみインポートできます ( PEP 489 を参照)。 Py_mod_multiple_interpreters も参照してください。 use_main_obmalloc が 0 の場合は、 1 (ゼロ以外) でなければなりません。 int gil サブイン ...
https://man.mtool.work/python/3.14/c-api/subinterpreters.html
Python インタプリタの拡張と埋め込み 9353
Python インタプリタの拡張と埋め込み This document describes how to write modules in C or C++ to extend the Python interpreter with new modules. Those modules can not only define new functions but also new object types and their methods. The ... これは自分自身の C 拡張を作成するおすすめの方法というよりも、主にそれらのツールを作成する人向けのものです。 参考 PEP 489 -- Multi-phase extension module initialization 1. Extending Python with C or C++ 1.1. A Simple Example 1.2. Intermezzo: Errors and ...
https://man.mtool.work/python/3.14/extending/
__future__ --- future 文の定義 9353
__future__ --- future 文の定義 ソースコード: Lib/__future__.py from __future__ import feature の形式でのインポートは future 文 の定義と呼ばれています。これらは特殊なケースで、 Python の新機能が標準になるリリースの前に Python コンパイラーが ... . division 2.2.0a2 3.0 PEP 238 : Changing the Division Operator __future__. absolute_import 2.5.0a1 3.0 PEP 328 : Imports: Multi-Line and Absolute/Relative __future__. with_statement 2.5.0a1 2.6 PEP 343 : 「with」文 __future__. print_function 2.6.0a2 ...
https://man.mtool.work/python/3.14/library/__future__.html
doctest --- 対話型の Python の例をテストする 9353
doctest --- 対話型の Python の例をテストする ソースコード: Lib/doctest.py doctest モジュールは Python の対話セッションに見えるテキストを探し、そのセッションを実行して記載どおりに動作するか検証します。 主な使い方は次のとおりです。 モジュール ... ースバックの最後の行ですが、例外が複数行の詳細情報を持っている場合、複数の行にわたることもあります: >>> raise ValueError ( 'multi \n line \n detail' ) Traceback (most recent call last): File "<stdin>" , line 1 , in <module> ValueError : multi line deta ... ースバックスタックは省略する、ということです。したがって、先ほどの例は以下のように書くべきでしょう: >>> raise ValueError ( 'multi \n line \n detail' ) Traceback (most recent call last): ... ValueError : multi line detail トレースバックは特別な方法で扱わ ...
https://man.mtool.work/python/3.14/library/doctest.html
拡張モジュールの定義 8879
拡張モジュールの定義 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 module object is initialized using extension-specific code -- the equivalent of __init__() on classes. This is called multi-phase initialization to distinguish it from the legacy (but still supported) single-phase initialization scheme, where the ... ていないことを明示的に通知することが期待されます。 通常は、上述したように分離を行うか、初期化の繰り返しを禁止します。 Py_mod_multiple_interpreters スロットで、モジュールをメインインタープリタに限定することもできます。 Initialization function The initial ... spam" , ... }; PyMODINIT_FUNC PyInit_spam ( void ) { return PyModuleDef_Init ( & spam_module ); } It is possible to export multiple modules from a single shared library by defining multiple initialization functions. However, importing them requires us ...
https://man.mtool.work/python/3.14/c-api/extension-modules.html
将来のバージョンで削除予定 8879
将来のバージョンで削除予定 以下の API は将来削除されますが、現時点では削除時期は決まっていません。 argparse : 引数グループの入れ子と、相互排他的なグループの入れ子は非推奨です。 add_argument_group() に、ドキュメント化されていないキーワード引 ... テキストモードの使用は非推奨です。 代わりに BytesIO とバイナリモードを使ってください。 os : Calling os.register_at_fork() in multi-threaded process. pydoc.ErrorDuringImport : exc_info パラメータにタプルを渡すことは非推奨です。 例外インスタンスを使ってく ...
https://man.mtool.work/python/3.14/deprecations/pending-removal-in-future.html
http --- HTTP モジュール群 8879
http --- HTTP モジュール群 ソースコード: Lib/http/__init__.py http は、HyperText Transfer Protocol を扱ういくつかのモジュールをまとめたパッケージです。 http.client は低水準のHTTPプロトコルのクライアントです。高水準の URL を開く操作には urll ... 05 RESET_CONTENT HTTP Semantics RFC 9110 , Section 15.3.6 206 PARTIAL_CONTENT HTTP Semantics RFC 9110 , Section 15.3.7 207 MULTI_STATUS WebDAV RFC 4918 , Section 11.1 208 ALREADY_REPORTED WebDAV Binding Extensions RFC 5842 , Section 7.1 (Experimental) ... 226 IM_USED Delta Encoding in HTTP RFC 3229 , Section 10.4.1 300 MULTIPLE_CHOICES HTTP Semantics RFC 9110 , Section 15.4.1 301 MOVED_PERMANENTLY HTTP Semantics RFC 9110 , Section 15.4.2 302 FOU ...
https://man.mtool.work/python/3.14/library/http.html
非推奨 7932
非推奨 Python 3.15 で削除予定 インポートシステム: Setting __cached__ on a module while failing to set __spec__.cached is deprecated. In Python 3.15, __cached__ will cease to be set or take into consideration by the import system or standard ... テキストモードの使用は非推奨です。 代わりに BytesIO とバイナリモードを使ってください。 os : Calling os.register_at_fork() in multi-threaded process. pydoc.ErrorDuringImport : exc_info パラメータにタプルを渡すことは非推奨です。 例外インスタンスを使ってく ...
https://man.mtool.work/python/3.14/deprecations/
用語集 7932
用語集 >>> 対話型 シェルにおけるデフォルトの Python プロンプトです。インタープリターで対話的に実行されるコード例でよく見られます。 ... 次のものが考えられます: 対話型 ( interactive ) シェルにおいて、インデントされたコードブロック、対応する左 ... ncio は非同期タスクやコルーチンを扱うためのライブラリです。 threading はオペレーティングシステムのスレッドへのアクセスを、 multiprocessing はオペレーティングシステムのプロセスへのアクセスを提供します。 マルチコアプロセッサは、異なる CPU コアでスレッド ... n 3.13, the GIL can be disabled using the --disable-gil build configuration. This feature enables improved performance for multi-threaded applications and makes it easier to use multi-core CPUs efficiently. For more details, see PEP 703 . 以前の Pytho ... 、一度に一つのスレッドだけが Python バイトコードを実行します。 そのため、複数の CPU コアを活用するには通常、複数のプロセス( multiprocessing など)や、GIL を解放するネイティブ拡張を使います。 フリースレッドの Python では、複数の Python スレッドが異なるコ ...
https://man.mtool.work/python/3.14/glossary.html
PREV 1 2 3 NEXT