per page, with , order by , clip by
Results of 1 - 10 of about 61 for contains (0.004 sec.)
collections.abc --- コンテナの抽象基底クラス 16597
collections.abc --- コンテナの抽象基底クラス Added in version 3.3: 以前はこのモジュールは collections モジュールの一部でした。 ソースコード: Lib/_collections_abc.py このモジュールは、 抽象基底クラス を提供します。抽象基底クラスは、クラスが特 ... r instead of inherit >>> issubclass ( D , Sequence ) True >>> isinstance ( D (), Sequence ) True この例では、クラス D は __contains__ , __iter__ , __reversed__ を定義する必要がありません。なぜなら in 演算子 , the 反復 ロジック, および reversed() 関数は自 ... モジュールは以下の ABC (抽象基底クラス) を提供します: ABC 継承しているクラス 抽象メソッド mixin メソッド Container [ 1 ] __contains__ Hashable [ 1 ] __hash__ Iterable [ 1 ] [ 2 ] __iter__ Iterator [ 1 ] Iterable __next__ __iter__ Reversible [ 1 ] Iterabl ... ow close , __iter__ , __next__ Sized [ 1 ] __len__ Callable [ 1 ] __call__ Collection [ 1 ] Sized , Iterable , Container __contains__ , __iter__ , __len__ Sequence Reversible , Collection __getitem__ , __len__ __contains__ , __iter__ , __reversed__ , ind ...
https://man.mtool.work/python/3.14/library/collections.abc.html
リモートデバッグのアタッチプロトコル 10161
リモートデバッグのアタッチプロトコル このプロトコルを使うと、外部ツールから実行中の CPython プロセスにアタッチし、Python コードをリモートで実行できます。 別の Python プロセスへのアタッチには、プラットフォームによって追加の権限や設定が必要な ... > int : # Step 1: Try to find the Python executable in memory binary_path , base_address = find_mapped_binary ( pid , name_contains = "python" ) # Step 2: Fallback to shared library if executable is not found if binary_path is None : binary_path , base_a ... ddress = find_mapped_binary ( pid , name_contains = "libpython" ) # Step 3: Parse ELF headers to get .PyRuntime section offset section_offset = parse_elf_section_offset ( b ... the process involves reading and interpreting the ELF file format structures from the binary file on disk. The ELF header contains a pointer to the section header table. Each section header contains metadata about a section including its name (stored in ...
https://man.mtool.work/python/3.14/howto/remote_debugging.html
C API Stability 9943
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... can change the behavior of extensions. See Python's Backwards Compatibility Policy ( PEP 387 ) for details. The Stable ABI contains symbols exposed in the Limited API , but also other ones – for example, functions necessary to support older versions of t ... ictProxy_Type PyDictRevIterItem_Type PyDictRevIterKey_Type PyDictRevIterValue_Type PyDictValues_Type PyDict_Clear() PyDict_Contains() PyDict_Copy() PyDict_DelItem() PyDict_DelItemString() PyDict_GetItem() PyDict_GetItemRef() PyDict_GetItemString() PyDict ... ngeIter_Type PyRange_Type PyReversed_Type PySeqIter_New() PySeqIter_Type PySequence_Check() PySequence_Concat() PySequence_Contains() PySequence_Count() PySequence_DelItem() PySequence_DelSlice() PySequence_Fast() PySequence_GetItem() PySequence_GetSlice ...
https://man.mtool.work/python/3.14/c-api/stable.html
Dictionary Objects 8494
Dictionary Objects type PyDictObject この PyObject のサブタイプは Python の辞書オブジェクトを表現します。 PyTypeObject PyDict_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の辞書を表現します。このオブジェクトは、 ... 次に属します: Stable ABI . Thread safety: Atomic . 現在辞書に入っている全てのキーと値のペアを除去して空にします。 int PyDict_Contains ( PyObject * p , PyObject * key ) 次に属します: Stable ABI . Thread safety: Safe for concurrent use on the same object . 辞 ... す。 注釈 key が str 、 int 、 float 、 bool 、 bytes の場合、この操作は フリースレッドビルド でアトミックです。 int PyDict_ContainsString ( PyObject * p , const char * key ) Thread safety: Atomic . PyDict_Contains() と同様ですが、 key は PyObject * ではな ... _GetItemWithError ( od , key ) PyDict_GetItemWithError() PyODict_GetItemString ( od , key ) PyDict_GetItemString() PyODict_Contains ( od , key ) PyDict_Contains() PyODict_Size ( od ) PyDict_Size() PyODict_SIZE ( od ) PyDict_GET_SIZE() 他のマニュアルの関連 ...
https://man.mtool.work/python/3.14/c-api/dict.html
共通のオブジェクト構造体 (common object structure) 8291
共通のオブジェクト構造体 (common object structure) Python のオブジェクト型の定義には、多数の構造体が使われます。 この節では、それらの構造体と使い方を説明します。 基本のオブジェクト型とマクロ すべての Python オブジェクトは、メモリ上の表現の先 ... Limited API . (いくつかのメンバーのみが安定 ABI です。) All object types are extensions of this type. This is a type which contains the information Python needs to treat a pointer to an object as an object. In a normal "release" build, it contains only t ... がない場合、デフォルトでは重複する定義をスキップします。 スロットラッパーはメソッドテーブルより先に登録されるため、例えば sq_contains スロットがあると、 __contains__() という名前のラップされたメソッドが生成され、同じ名前に対応する PyCFunction は登録されませ ...
https://man.mtool.work/python/3.14/c-api/structures.html
operator --- 関数形式の標準演算子 8291
operator --- 関数形式の標準演算子 ソースコード: Lib/operator.py operator モジュールは、Python の組み込み演算子に対応する効率的な関数を提供します。 例えば、 operator.add(x, y) は式 x+y と同等です。 多くの関数名は、特殊メソッドの名前から二重ア ... ます: operator. concat ( a , b ) operator. __concat__ ( a , b ) シーケンス a および b について a + b を返します。 operator. contains ( a , b ) operator. __contains__ ( a , b ) b in a の判定結果を返します。被演算子が左右反転しているので注意してください。 o ... ュールの関数との対応を示します。 演算 操作 関数 加算 a + b add(a, b) 結合 seq1 + seq2 concat(seq1, seq2) 包含判定 obj in seq contains(seq, obj) 除算 a / b truediv(a, b) 除算 a // b floordiv(a, b) ビットごとの論理積、または積集合 a & b and_(a, b) ビットごと ...
https://man.mtool.work/python/3.14/library/operator.html
スレッドセーフ性の保証 8074
スレッドセーフ性の保証 このページでは、Python のフリースレッドビルドにおける組み込み型のスレッドセーフ性の保証を説明します。 ここで説明する保証は、 GIL を無効にして Python を使う場合 (フリースレッドモード) に適用されます。 GIL が有効な場合、 ... rations and functions are lock-free and atomic . d [ key ] # dict.__getitem__ d . get ( key ) # dict.get key in d # dict.__contains__ len ( d ) # dict.__len__ All other operations from here on hold the per-object lock . 単一の要素の書き込みや削除は、複数 ... current modifications and may observe intermediate states from operations that hold the per-object lock: elem in s # set.__contains__ This operation may compare elements using __eq__() , which can execute arbitrary Python code. During such comparisons, t ... り返して新しいバイト配列を作成する 要素が含まれるかどうかの判定では、処理中ずっとロックを保持します。 x in ba # bytearray.__contains__ All other bytearray methods (such as find() , replace() , split() , decode() , etc.) hold the per-object lock for their ...
https://man.mtool.work/python/3.14/builtins/threadsafety.html
シーケンス型プロトコル (sequence protocol) 8074
シーケンス型プロトコル (sequence protocol) int PySequence_Check ( PyObject * o ) 次に属します: Stable ABI . オブジェクトがシーケンス型プロトコルを提供していれば 1 、それ以外なら 0 を返します。 一般に、クラスがどの型のキーをサポートするかは判 ... ey] == value となる key の個数を返します。失敗すると -1 を返します。Python の式 o.count(value) と同じです。 int PySequence_Contains ( PyObject * o , PyObject * value ) 次に属します: Stable ABI . o に value が入っているか判定します。 o のある要素が value ... n の式 value in o と同じです。 int PySequence_In ( PyObject * o , PyObject * value ) 次に属します: Stable ABI . PySequence_Contains() の別名です。 バージョン 3.14 で ソフト非推奨 <Soft deprecated> : 新しいコードを書く際に、この関数を使わないでください。 ...
https://man.mtool.work/python/3.14/c-api/sequence.html
Set オブジェクト 8074
Set オブジェクト このセクションでは set と frozenset の公開 API について詳しく述べます。以降で説明していない機能は、抽象オブジェクトプロトコル ( PyObject_CallMethod() , PyObject_RichCompareBool() , PyObject_Hash() , PyObject_Repr() , PyObje ... et_GET_SIZE ( PyObject * anyset ) Thread safety: Atomic . エラーチェックを行わない、 PySet_Size() のマクロ形式。 int PySet_Contains ( PyObject * anyset , PyObject * key ) 次に属します: Stable ABI . Thread safety: Safe for concurrent use on the same objec ... t . 見付かれば 1 、見付からなければ 0 、エラーが起きれば -1 を返します。 Python の __contains__() メソッドとは異なり、ハッシュ不可能な集合を一時的な frozenset に自動変換しません。 key がハッシュ不可能な場合、 TypeErr ...
https://man.mtool.work/python/3.14/c-api/set.html
Pythonモジュール索引 8074
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 ... aces, import-time behavior, and ``__name__ == '__main__'``. _thread Low-level threading API. _tkinter A binary module that contains the low-level interface to Tcl/Tk. a abc Abstract base classes according to :pep:`3119`. aifc 非推奨: Removed in 3.13. ann ... The Python debugger for interactive interpreters. pickle Convert Python objects to streams of bytes and back. pickletools Contains extensive comments about the pickle protocols and pickle-machine opcodes, as well as some useful functions. pipes 非推奨: ...
https://man.mtool.work/python/3.14/py-modindex.html
PREV 1 2 3 4 5 6 7 NEXT