per page, with , order by , clip by
Results of 1 - 10 of about 38 for section (0.004 sec.)
http --- HTTP モジュール群 15189
http --- HTTP モジュール群 ソースコード: Lib/http/__init__.py http は、HyperText Transfer Protocol を扱ういくつかのモジュールをまとめたパッケージです。 http.client は低水準のHTTPプロトコルのクライアントです。高水準の URL を開く操作には urll ... 可能な、サポートされている、 IANA に登録されたステータスコード は: コード 列挙名 詳細 100 CONTINUE HTTP Semantics RFC 9110 , Section 15.2.1 101 SWITCHING_PROTOCOLS HTTP Semantics RFC 9110 , Section 15.2.2 102 PROCESSING WebDAV RFC 2518 , Section 10.1 103 ... EARLY_HINTS An HTTP Status Code for Indicating Hints RFC 8297 200 OK HTTP Semantics RFC 9110 , Section 15.3.1 201 CREATED HTTP Semantics RFC 9110 , Section 15.3.2 202 ACCEPTED HTTP Semantics RFC 9110 , Section 15.3.3 203 NON_ ... AUTHORITATIVE_INFORMATION HTTP Semantics RFC 9110 , Section 15.3.4 204 NO_CONTENT HTTP Semantics RFC 9110 , Section 15.3.5 205 RESET_CONTENT HTTP Semantics RFC 9110 , Section 15.3.6 ...
https://man.mtool.work/python/3.14/library/http.html
configparser --- 設定ファイルのパーサー 13145
configparser --- 設定ファイルのパーサー ソースコード: Lib/configparser.py このモジュールは、 Microsoft Windows の INI ファイルに似た構造を持ったベーシックな設定用言語を実装した ConfigParser クラスを提供します。このクラスを使ってユーザーが簡 ... した。次はこれを読み込み直して、中のデータを取り出してみましょう。 >>> config = configparser . ConfigParser () >>> config . sections () [] >>> config . read ( 'example.ini' ) ['example.ini'] >>> config . sections () ['forge.example', 'topsecret.server.ex ... tchMode' , fallback = True ) False サポートするINI ファイルの構造 設定ファイルはセクションで構成されます。 各セクションは [section] ヘッダーで始まり、その後に特定の文字列 (デフォルトでは = または : [ 1 ] ) で区切られたキーと値のエントリーが続きます。 デ ... を含まない任意の文字列をセクション名にできます。 これを変更するには ConfigParser.SECTCRE を参照してください。 allow_unnamed_section=True を指定して無名の最上位セクションを許可した場合、最初のセクション名は省略できます。 この場合、 config[UNNAMED_SECTION] ...
https://man.mtool.work/python/3.14/library/configparser.html
リモートデバッグのアタッチプロトコル 9528
リモートデバッグのアタッチプロトコル このプロトコルを使うと、外部ツールから実行中の CPython プロセスにアタッチし、Python コードをリモートで実行できます。 別の Python プロセスへのアタッチには、プラットフォームによって追加の権限や設定が必要な ... th , base_address = find_mapped_binary ( pid , name_contains = "libpython" ) # Step 3: Parse ELF headers to get .PyRuntime section offset section_offset = parse_elf_section_offset ( binary_path , ".PyRuntime" ) # Step 4: Compute PyRuntime address in mem ... ory return base_address + section_offset Linux では、別のプロセスのメモリを読む主な方法が二つあります。 一つは /proc ファイルシステムを使う方法で、具体的には ... か読めず、トレースする側とされる側のプロセス間で複数回のコンテキスト切り替えが必要なため、はるかに低速です。 For parsing ELF sections, the process involves reading and interpreting the ELF file format structures from the binary file on disk. The ELF heade ...
https://man.mtool.work/python/3.14/howto/remote_debugging.html
C API 拡張のフリースレッド対応 8475
C API 拡張のフリースレッド対応 CPython 3.13 から、 global interpreter lock (GIL) を無効にして実行する free threading という構成がサポートされています。 このドキュメントでは、C API を使う拡張をフリースレッドに対応させる方法を説明します。 C か ... べき例外は PyDict_Next() で、この関数は辞書をロックしません。 辞書が並行して変更される可能性がある場合は、 Py_BEGIN_CRITICAL_SECTION を使い、イテレート中の辞書を保護してください。 Py_BEGIN_CRITICAL_SECTION ( dict ); PyObject * key , * value ; Py_ssize_t p ... os = 0 ; while ( PyDict_Next ( dict , & pos , & key , & value )) { ... } Py_END_CRITICAL_SECTION (); 借用参照 一部の C API 関数は 借用参照 を返します。 参照先を保持するオブジェクトが並行して変更される場合、これらの API ... る場合もあります。 クリティカルセクションの使い方 クリティカルセクションを使う主な API は次のとおりです。 Py_BEGIN_CRITICAL_SECTION と Py_END_CRITICAL_SECTION — 1 つのオブジェクトをロックします。 Py_BEGIN_CRITICAL_SECTION2 と Py_END_CRITICAL_SECTION2 — 2 ...
https://man.mtool.work/python/3.14/howto/free-threading-extensions.html
正規表現 HOWTO 8428
正規表現 HOWTO Author : A.M. Kuchling < amk @ amk . ca > 概要 このドキュメントは re モジュールを使って Python で正規表現を扱うための導入のチュートリアルです。ライブラリレファレンスの正規表現の節よりもやさしい入門ドキュメントを用意しています ... ックスラッシュ文字 ( '\' ) を利用します。これは Python が文字列リテラルに対して、同じ文字を同じ目的で使うことと衝突します。 \section という文字列 (これは LaTeX ファイルでみかけます) にマッチする正規表現を書きたいとします。どんなプログラムを書くか考え、マッ ... 考えます。次に、バックスラッシュや他の特殊文字をバックスラッシュに続けて書くことでエスケープしなければいけません、その結果 \\section のような文字列となります。こうしてできた re.compile() に渡す文字列は \\section でなければいけません。しかし、これを Python ... の文字列リテラルとして扱うにはこの二つのバックスラッシュを 再び エスケープする必要があります。 文字 段階 \section マッチさせるテキスト \\section re.compile() のためのバックスラッシュエスケープ "\\\\section" 文字列リテラルのためのバックス ...
https://man.mtool.work/python/3.14/howto/regex.html
同期プリミティブ 8207
同期プリミティブ C API は基本的な相互排他ロックを提供します。 type PyMutex 相互排他ロックです。 PyMutex は、ロックされていない状態を表すために 0 で初期化する必要があります。 例えば次のようにします。 PyMutex mutex = { 0 }; PyMutex のインスタ ... the structures may change in future Python versions. 注釈 2 個のオブジェクトを同時にロックする操作には、 Py_BEGIN_CRITICAL_SECTION2 を使う必要があります。 複数のオブジェクトを同時にロックするために、クリティカルセクションを入れ子にすることは できません ... ックする方法を提供しません。 使用例: static PyObject * set_field ( MyObject * self , PyObject * value ) { Py_BEGIN_CRITICAL_SECTION ( self ); Py_SETREF ( self -> field , Py_XNewRef ( value )); Py_END_CRITICAL_SECTION (); Py_RETURN_NONE ; } 上の例では、 P ... よるクリティカルセクションの一時的な中断を許すことで、再入やロックの順序に起因するデッドロックを避けます。 Py_BEGIN_CRITICAL_SECTION ( op ) オブジェクト op のロックを取得し、クリティカルセクションを開始します。 フリースレッドビルドでは、このマクロは次のよ ...
https://man.mtool.work/python/3.14/c-api/synchronization.html
unicodedata --- Unicode データベース 7877
unicodedata --- Unicode データベース This module provides access to the Unicode Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the UCD version 16. ... ry assigned to the character chr as string. General category names consist of two letters. See the General Category Values section of the Unicode Character Database documentation for a list of category codes. For example: >>> unicodedata . category ( 'A ... the character chr as string. If no such value is defined, an empty string is returned. See the Bidirectional Class Values section of the Unicode Character Database documentation for a list of bidirectional codes. For example: >>> unicodedata . bidirect ... gned to the character chr as integer. Returns 0 if no combining class is defined. See the Canonical Combining Class Values section of the Unicode Character Database for more information. unicodedata. east_asian_width ( chr ) Returns the east asian width ...
https://man.mtool.work/python/3.14/library/unicodedata.html
pprint --- データの整形表示 7657
pprint --- データの整形表示 ソースコード: Lib/pprint.py pprint モジュールは、任意の Python データ構造を、インタープリタへの入力に使える形式で「整形表示」する機能を提供します。 整形するデータ構造に Python の基本的な型以外のオブジェクトが含ま ... amples, etc. Generally, including the project ' 'changelog in here is not\n' 'a good idea, although a simple "What\'s New" section for the ' 'most recent version\n' 'may be appropriate.', 'description_content_type': None, 'docs_url': None, 'download_url ... amples, etc. Generally, including the project ' 'changelog in here is not\n' 'a good idea, although a simple "What\'s New" section for the ' 'most recent version\n' 'may be appropriate.', 'description_content_type': None, 'docs_url': None, 'download_url ... les, etc. Generally, including ' 'the project changelog in here is not\n' 'a good idea, although a simple "What\'s ' 'New" section for the most recent version\n' 'may be appropriate.', 'description_content_type': None, 'docs_url': None, 'download_url': ...
https://man.mtool.work/python/3.14/library/pprint.html
拡張モジュールの定義 7626
拡張モジュールの定義 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 ... lization scheme, where the initialization function returns a fully constructed module. See the single-phase-initialization section below for details. バージョン 3.5 で変更: 多段階初期化 ( PEP 489 ) のサポートを追加しました。 複数のモジュールインスタンス ... rter, because by default only the function corresponding to the filename is found. See the Multiple modules in one library section in PEP 489 for details. The initialization function is typically the only non- static item defined in the module's C sourc ...
https://man.mtool.work/python/3.14/c-api/extension-modules.html
Dictionary Objects 7531
Dictionary Objects type PyDictObject この PyObject のサブタイプは Python の辞書オブジェクトを表現します。 PyTypeObject PyDict_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の辞書を表現します。このオブジェクトは、 ... The function is not thread-safe in the free-threaded build without external synchronization. You can use Py_BEGIN_CRITICAL_SECTION to lock the dictionary while iterating over it: Py_BEGIN_CRITICAL_SECTION ( self -> dict ); while ( PyDict_Next ( self -> ... dict , & pos , & key , & value )) { ... } Py_END_CRITICAL_SECTION (); 注釈 フリースレッドビルドでは、この関数はクリティカルセクション内で安全に使えます。 ただし、 pkey と pvalue に返される ...
https://man.mtool.work/python/3.14/c-api/dict.html
PREV 1 2 3 4 NEXT