per page, with , order by , clip by
Results of 1 - 10 of about 24 for equal (0.004 sec.)
tokenize --- Python ソース用のトークナイザー 14111
tokenize --- Python ソース用のトークナイザー ソースコード: Lib/tokenize.py The tokenize module provides a lexical scanner for Python source code, implemented in Python. The scanner in this module returns comments as tokens as well, making i ... the final row and ecol is the column on that row. For example, the name spam at the beginning of the first line has start equal to (1, 0) and end equal to (1, 4) . For an ENCODING token, this is (0, 0) . A NEWLINE or NL token inserted at the end of i ... entifying the specific operator type for OP tokens, as defined by the constants in token . For all other token types, this equals type . For example, a + token has type equal to OP and exact_type equal to PLUS . Added in version 3.3. token モジュールの ...
https://man.mtool.work/python/3.14/library/tokenize.html
difflib --- 差分の計算の補助 11509
difflib --- 差分の計算の補助 ソースコード: Lib/difflib.py このモジュールはシーケンスを比較するクラスと関数を提供します。 その多くは、テキスト行のシーケンス (文字列のリストや ファイルオブジェクト など) を比較し、相違点を報告する 差分 (diff) ... e' a[i1:i2] は削除される。この時、 j1 == j2 である。 'insert' b[j1:j2] が a[i1:i1] に挿入される。この時 i1 == i2 である。 'equal' a[i1:i2] == b[j1:j2] (サブシーケンスは等しい). 例えば: >>> a = "qabxcd" >>> b = "abycdf" >>> s = SequenceMatcher ( None , ... >8} --> {!r} ' . format ( ... tag , i1 , i2 , j1 , j2 , a [ i1 : i2 ], b [ j1 : j2 ])) delete a[0:1] --> b[0:0] 'q' --> '' equal a[1:3] --> b[0:2] 'ab' --> 'ab' replace a[3:4] --> b[2:3] 'x' --> 'y' equal a[4:6] --> b[3:5] 'cd' --> 'cd' insert a[6:6] ... は、 get_opcodes() を使います: >>> for opcode in s . get_opcodes (): ... print ( " %6s a[ %d : %d ] b[ %d : %d ]" % opcode ) equal a[0:8] b[0:8] insert a[8:8] b[8:17] equal a[8:29] b[17:38] 参考 SequenceMatcher を使った、シンプルで使えるコードを知るには ...
https://man.mtool.work/python/3.14/library/difflib.html
浮動小数点オブジェクト 11075
浮動小数点オブジェクト type PyFloatObject この PyObject のサブタイプは Python の浮動小数点オブジェクトを表します。 PyTypeObject PyFloat_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の浮動小数点型を表します。 Pyt ... f you want big-endian format (exponent first, at p ). Use the PY_LITTLE_ENDIAN constant to select the native endian: it is equal to 0 on big endian processor, or 1 on little endian processor. 戻り値は、成功した場合は 0 、エラーの場合は -1 です (例外も ... nd p+7 ), zero if big-endian (exponent first, at p ). Use the PY_LITTLE_ENDIAN constant to select the native endian: it is equal to 0 on big endian processor, or 1 on little endian processor. 戻り値は、アンパックした double です。 エラーの場合は -1.0 ...
https://man.mtool.work/python/3.14/c-api/float.html
Expat C API 9758
Expat C API The xml.parsers.expat module exposes selected Expat functions through its expat_CAPI capsule. This allows extension modules to use the same Expat library as Python. The interface is declared in pyexpat.h , which must be included ... ing the layout of PyExpat_CAPI . Before using the function pointers in the structure, check that its magic member compares equal to this string using strcmp() and its size member is at least sizeof ( struct PyExpat_CAPI ) . struct PyExpat_CAPI Table o ...
https://man.mtool.work/python/3.14/c-api/pyexpat.html
token --- Python 解析木で使われる定数 8890
token --- Python 解析木で使われる定数 ソースコード: Lib/token.py このモジュールは解析木の葉ノード(終端記号)の数値を表す定数を提供します。言語の文法のコンテキストにおける名前の定義については、 Python ディストリビューションのファイル Grammar/ ... ken. MINUS "-" token. STAR "*" token. SLASH "/" token. VBAR "|" token. AMPER "&" token. LESS "<" token. GREATER ">" token. EQUAL "=" token. DOT "." token. PERCENT "%" token. LBRACE "{" token. RBRACE "}" token. EQEQUAL "==" token. NOTEQUAL "!=" token. ... LESSEQUAL "<=" token. GREATEREQUAL ">=" token. TILDE "~" token. CIRCUMFLEX "^" token. LEFTSHIFT "<<" token. RIGHTSHIFT ">>" token. D ... OUBLESTAR "**" token. PLUSEQUAL "+=" token. MINEQUAL "-=" token. STAREQUAL "*=" token. SLASHEQUAL "/=" token. PERCENTEQUAL "%=" token. AMPEREQUAL "&=" tok ...
https://man.mtool.work/python/3.14/library/token.html
シーケンス型プロトコル (sequence protocol) 8456
シーケンス型プロトコル (sequence protocol) int PySequence_Check ( PyObject * o ) 次に属します: Stable ABI . オブジェクトがシーケンス型プロトコルを提供していれば 1 、それ以外なら 0 を返します。 一般に、クラスがどの型のキーをサポートするかは判 ... ect * o , PyObject * value ) 次に属します: Stable ABI . o に value が入っているか判定します。 o のある要素が value と等価 (equal) ならば 1 を返し、それ以外の場合には 0 を返します。エラーが発生すると -1 を返します。Python の式 value in o と同じです。 i ...
https://man.mtool.work/python/3.14/c-api/sequence.html
itertools --- 効率的なループ用のイテレータ生成関数群 8456
itertools --- 効率的なループ用のイテレータ生成関数群 このモジュールは イテレータ を構築する部品を実装しています。プログラム言語 APL, Haskell, SML からアイデアを得ていますが、 Python に適した形に修正されています。 このモジュールは、高速でメモ ... irst_true([a, b], x, f) → a if f(a) else b if f(b) else x return next ( filter ( predicate , iterable ), default ) def all_equal ( iterable , key = None ): "すべての要素が互いに等しければ True を返す。" # all_equal('4٤௪౪໔', key=int) → True return ...
https://man.mtool.work/python/3.14/library/itertools.html
C API Stability 8023
C API Stability 特記のない限り、Python の C API には後方互換性ポリシー PEP 387 が適用されます。 変更の大半はソース互換性を保ちます (通常は新しい API の追加だけを行います)。 既存 API の変更や削除は、非推奨の期間を経た後、または重大な問題を修 ... PyUnicode_DecodeUnicodeEscape() PyUnicode_EncodeCodePage() PyUnicode_EncodeFSDefault() PyUnicode_EncodeLocale() PyUnicode_Equal() PyUnicode_EqualToUTF8() PyUnicode_EqualToUTF8AndSize() PyUnicode_FSConverter() PyUnicode_FSDecoder() PyUnicode_Find() Py ...
https://man.mtool.work/python/3.14/c-api/stable.html
Unicode オブジェクトと codec 8023
Unicode オブジェクトと codec Unicode オブジェクト Python 3.3 で PEP 393 が実装されて以来、Unicode オブジェクトは内部で複数の表現形式を使っています。 これにより、メモリ効率を維持しながら Unicode 文字の全範囲を扱えます。 すべてのコードポイント ... ます。 この関数は、失敗したときに -1 を返すので、 PyErr_Occurred() を呼び出して、エラーをチェックすべきです。 参考 PyUnicode_Equal() 関数。 int PyUnicode_Equal ( PyObject * a , PyObject * b ) 次に属します: Stable ABI (バージョン 3.14 より). 2 つの文字列 ... も使えますが、独自の __eq__() メソッドは考慮しません。 参考 PyUnicode_Compare() 関数。 Added in version 3.14. int PyUnicode_EqualToUTF8AndSize ( PyObject * unicode , const char * string , Py_ssize_t size ) 次に属します: Stable ABI (バージョン 3.13 より ... 文字列が有効な UTF-8 でない場合は、偽 ( 0 ) を返します。 この関数は例外を送出しません。 Added in version 3.13. int PyUnicode_EqualToUTF8 ( PyObject * unicode , const char * string ) 次に属します: Stable ABI (バージョン 3.13 より). PyUnicode_EqualToUTF8A ...
https://man.mtool.work/python/3.14/c-api/unicode.html
importlib.metadata -- パッケージメタデータへのアクセス 8023
importlib.metadata -- パッケージメタデータへのアクセス Added in version 3.8. バージョン 3.10 で変更: importlib.metadata は暫定的なものではなくなりました。 ソースコード: Lib/importlib/metadata/__init__.py importlib.metadata は、インストール済 ... ry for entry points based on their EntryPoint.dist attribute (as different Distribution instances do not currently compare equal, even if they have the same attributes) class importlib.metadata. EntryPoints インストール済みのエントリポイントのコレクシ ...
https://man.mtool.work/python/3.14/library/importlib.metadata.html
PREV 1 2 3 NEXT