per page, with , order by , clip by
Results of 1 - 10 of about 25 for constant (0.008 sec.)
ast --- 抽象構文木 16107
ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在 ... ができます。 抽象文法 抽象文法は、現在次のように定義されています: -- ASDL's 4 builtin types are: -- identifier, int, string, constant module Python { mod = Module ( stmt * body , type_ignore * type_ignores ) | Interactive ( stmt * body ) | Expression ( exp ... keyword * keywords ) | FormattedValue ( expr value , int conversion , expr ? format_spec ) | Interpolation ( expr value , constant str , int conversion , expr ? format_spec ) | JoinedStr ( expr * values ) | TemplateStr ( expr * values ) | Constant ( con ... ars ) match_case = ( pattern pattern , expr ? guard , stmt * body ) pattern = MatchValue ( expr value ) | MatchSingleton ( constant value ) | MatchSequence ( pattern * patterns ) | MatchMapping ( expr * keys , pattern * patterns , identifier ? rest ) | M ...
https://man.mtool.work/python/3.14/library/ast.html
オブジェクトプロトコル (object protocol) 9913
オブジェクトプロトコル (object protocol) PyObject * Py_GetConstant ( unsigned int constant_id ) 次に属します: Stable ABI (バージョン 3.13 より). 定数への 強参照 を取得します。 constant_id が無効な場合、例外を設定して NULL を返します。 constant ... ant_id は次の定数識別子のいずれかでなければなりません。 定数識別子 値 返されるオブジェクト Py_CONSTANT_NONE 0 None Py_CONSTANT_FALSE 1 False Py_CONSTANT_TRUE 2 True Py_CONSTANT_ELLIPSIS 3 Ellipsis Py_CONSTANT_NOT_IMPLEMENTED ... 4 NotImplemented Py_CONSTANT_ZERO 5 0 Py_CONSTANT_ONE 6 1 Py_CONSTANT_EMPTY_STR 7 '' Py_CONSTANT_EMPTY_BYTES 8 b'' Py_CONSTANT_EMPTY_TUPLE 9 () 数値は、 ... ロジェクトのためにのみ示しています。 Added in version 3.13. CPython では、これらの定数はすべて 不死 です。 PyObject * Py_GetConstantBorrowed ( unsigned int constant_id ) 次に属します: Stable ABI (バージョン 3.13 より). Py_GetConstant() と同様ですが、 借用 ...
https://man.mtool.work/python/3.14/c-api/object.html
json --- JSON エンコーダーとデコーダー 8634
json --- JSON エンコーダーとデコーダー ソースコード: Lib/json/__init__.py JSON (JavaScript Object Notation) は、 RFC 7159 ( RFC 4627 を obsolete) と ECMA-404 によって定義された軽量のデータ交換用のフォーマットです。 JavaScript のオブジェクト ... p() と同じ意味です。 json. load ( fp , * , cls = None , object_hook = None , parse_float = None , parse_int = None , parse_constant = None , object_pairs_hook = None , ** kw ) JSON から Python への変換表 に従って、 fp を Python オブジェクトに脱直列化しま ... デフォルト) の場合、 int(num_str) と同等です。 この機能で、JSON の整数を float などのカスタムデータ型に変換できます。 parse_constant ( callable | None) -- 指定する場合は、 '-Infinity' 、 'Infinity' 、 'NaN' のいずれかの文字列を引数として呼び出される関数。 ... いない場合。 バージョン 3.1 で変更: 省略可能な object_pairs_hook 引数を追加しました。 'null', 'true', 'false' に対して parse_constant は呼びされません。 バージョン 3.6 で変更: すべてのオプション引数は、 キーワード専用 になりました。 fp には binary file 型も ...
https://man.mtool.work/python/3.14/library/json.html
2. 拡張の型の定義: チュートリアル 8335
2. 拡張の型の定義: チュートリアル Python では、組み込みの str 型や list 型のような Python コードから操作できる新しい型を C 拡張モジュールの作者が定義できます。 全ての拡張の型のコードはあるパターンに従うのですが、書き始める前に理解しておくべ ... CustomObject * self ; self = ( CustomObject * ) type -> tp_alloc ( type , 0 ); if ( self != NULL ) { self -> first = Py_GetConstant ( Py_CONSTANT_EMPTY_STR ); if ( self -> first == NULL ) { Py_DECREF ( self ); return NULL ; } self -> last = Py_GetConstan ... t ( Py_CONSTANT_EMPTY_STR ); if ( self -> last == NULL ) { Py_DECREF ( self ); return NULL ; } self -> number = 0 ; } return ( PyObject * ... CustomObject * self ; self = ( CustomObject * ) type -> tp_alloc ( type , 0 ); if ( self != NULL ) { self -> first = Py_GetConstant ( Py_CONSTANT_EMPTY_STR ); if ( self -> first == NULL ) { Py_DECREF ( self ); return NULL ; } self -> last = Py_GetConstan ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
浮動小数点オブジェクト 8219
浮動小数点オブジェクト type PyFloatObject この PyObject のサブタイプは Python の浮動小数点オブジェクトを表します。 PyTypeObject PyFloat_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の浮動小数点型を表します。 Pyt ... ast, at p+1 , p+3 , or p+6 and p+7 ), zero if 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. 戻り値は、成功した ... format (exponent last, at p+1 , p+3 or p+6 and 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. 戻り値は、アンパッ ...
https://man.mtool.work/python/3.14/c-api/float.html
The Python Profilers 8153
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 ... lts are actually better than without calibration. キャリブレーション (補正) The profiler of the profile module subtracts a constant from each event handling time to compensate for the overhead of calling the time function, and socking away the results. B ... y default, the constant is 0. The following procedure can be used to obtain a better constant for a given platform (see 制限事項 ). import profile ...
https://man.mtool.work/python/3.14/library/profile.html
What's new in Python 3.14 8086
What's new in Python 3.14 エディタ : Adam Turner と Hugo van Kemenade この記事では Python 3.13 と比較した Python 3.14 の新機能を解説します。Python 3.14 は2025年10月7日にリリースされました。全詳細については 変更履歴 をご覧ください。 参考 PEP ... 非推奨でした。 (Savannah Ostrowski が gh-127186 で貢献しました。) ast 以下のクラスを削除しました。 これらは Python 3.8 から Constant の非推奨の別名となっており、Python 3.12 から非推奨の警告を出していました。 Bytes Ellipsis NameConstant Num Str これらの削除 ... に伴い、 NodeVisitor の独自のサブクラスに定義した visit_Num 、 visit_Str 、 visit_Bytes 、 visit_NameConstant 、 visit_Ellipsis メソッドは、 NodeVisitor サブクラスが AST を走査するときに呼ばれなくなりました。 代わりに visit_Constant ... メソッドを定義してください。 (Alex Waygood が gh-119562 で貢献しました。) ast.Constant の以下の非推奨のプロパティを削除しました。 これらは、今回削除された AST クラスとの互換性のために存在していました。 Constan ...
https://man.mtool.work/python/3.14/whatsnew/3.14.html
Python 3.14 で削除予定 8036
Python 3.14 で削除予定 argparse : argparse.BooleanOptionalAction の type 、 choices 、 metavar パラメータは非推奨となり、3.14 で削除されます。 (Nikita Sobolev が gh-92248 で貢献しました。) ast :以下の機能は Python 3.8 からドキュメントで非推 ... 用をすると実行時に DeprecationWarning が出るようになりました。 Python 3.14 で削除されます: ast.Num ast.Str ast.Bytes ast.NameConstant ast.Ellipsis 代わりに ast.Constant を使ってください。 (Serhiy Storchaka が gh-90953 で貢献しました。) asyncio : 子プロセス ...
https://man.mtool.work/python/3.14/deprecations/pending-removal-in-3.14.html
What's New In Python 3.8 7970
What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ ... __annotations__ 属性を使ってください。 (Contributed by Raymond Hettinger in bpo-36320 .) ast の Num 、 Str 、 Bytes 、 NameConstant 、 Ellipsis クラスは非推奨とされ、将来の Python で削除されます。 代わりに Constant を使ってください。 (Contributed by Serh ... iy Storchaka in bpo-32892 .) ast.NodeVisitor の visit_Num() 、 visit_Str() 、 visit_Bytes() 、 visit_NameConstant() 、 visit_Ellipsis() メソッドが非推奨になり、将来の Python では呼ばれなくなります。 すべての定数ノードを処理する visit_Co ... bm.ndbm.error ) を送出します。 (Contributed by Xiang Zhang in bpo-33106 .) リテラルの AST が簡素化され、すべての定数が ast.Constant インスタンスで表されるようになりました。 古い Num 、 Str 、 Bytes 、 NameConstant 、 Ellipsis クラスをインスタンス化すると ...
https://man.mtool.work/python/3.14/whatsnew/3.8.html
unicodedata --- Unicode データベース 7904
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. ... form の有効な値は、'NFC'、'NFKC'、'NFD'、'NFKD' です。 Added in version 3.8. In addition, the module exposes the following constant: unicodedata. unidata_version このモジュールで使われている Unicode データベースのバージョン。 unicodedata. ucd_3_2_0 This ...
https://man.mtool.work/python/3.14/library/unicodedata.html
PREV 1 2 3 NEXT