per page, with , order by , clip by
Results of 1 - 8 of about 8 for rules (0.008 sec.)
10. 完全な文法仕様 13736
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... r for Python # ========================= START OF THE GRAMMAR ========================= # General grammatical elements and rules: # # * Strings with double quotes (") denote SOFT KEYWORDS # * Strings with single quotes (') denote KEYWORDS # * Upper ca ... tokens in the Grammar/Tokens file # * Rule names starting with "invalid_" are used for specialized syntax errors # - These rules are NOT used in the first pass of the parser. # - Only if the first pass fails to parse, a second pass including the inval ... id # rules will be executed. # - If the parser fails in the second phase with a generic syntax error, the # location of the generic f ...
https://man.mtool.work/python/3.14/reference/grammar.html
インタープリタの初期化と終了処理 8838
インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP ... : Stable ABI . Return the prefix for installed platform-independent files. This is derived through a number of complicated rules from the program name set with PyConfig.program_name and some environment variables; for example, if the program name is ' ... able ABI . Return the exec-prefix for installed platform- dependent files. This is derived through a number of complicated rules from the program name set with PyConfig.program_name and some environment variables; for example, if the program name is ' ...
https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
email.utils: 各種ユーティリティ 8838
email.utils : 各種ユーティリティ ソースコード: Lib/email/utils.py email.utils モジュールには、いくつかの便利なユーティリティがあります: email.utils. localtime ( dt = None ) Return local time as an aware datetime object. If called without ar ... デフォルトで不正な入力を拒否するようになりました。 email.utils. parsedate ( date ) Attempts to parse a date according to the rules in RFC 2822 Section 3.3 . However, some mailers don't follow that format as specified, so parsedate() tries to guess corre ...
https://man.mtool.work/python/3.14/library/email.utils.html
列挙型 HOWTO 8350
列挙型 HOWTO Enum は、ユニークな値に束縛されたシンボル名の集合です。グローバル変数に似ていますが、 repr() がより便利だったり、グルーピングの機能、型安全などいくつかの機能があります。 これらは、限られた選択肢の値の一つを取る変数がある場合に便 ... のようにして、同様の派生列挙型を定義できます。 例えば、 int の代わりに float をミックスインする FloatEnum も作れます。 Some rules: Enum のサブクラスを作成するとき、複合させるデータ型は、基底クラスの並びで Enum クラス自身より先に記述しなければなりません ...
https://man.mtool.work/python/3.14/howto/enum.html
組み込み関数 8115
組み込み関数 Python インタプリタには数多くの関数と型が組み込まれており、いつでも利用できます。それらをここにアルファベット順に挙げます。 組み込み関数 A abs() aiter() all() anext() any() ascii() B bin() bool() breakpoint() bytearray() bytes( ... は、冪乗演算子を使う base**exp と等価です。 When arguments are builtin numeric types with mixed operand types, the coercion rules for binary arithmetic operators apply. For int operands, the result has the same type as the operands (after coercion) unl ...
https://man.mtool.work/python/3.14/builtins/functions.html
ast --- 抽象構文木 8115
ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在 ... 左辺のツリーのクラスを継承しています。たとえば、 ast.BinOp は ast.expr から継承しています。代替を伴った生成規則 (production rules with alternatives) (別名 "sums") の場合、左辺は抽象クラスとなり、特定のコンストラクタ・ノードのインスタンスのみが作成されま ...
https://man.mtool.work/python/3.14/library/ast.html
ctypes --- Python 用の外部関数ライブラリ 8115
ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために ... a c_char_p item in the argtypes tuple will convert a string passed as argument into a bytes object using ctypes conversion rules. 新機能: argtypes に ctypes の型以外の要素も指定できるようになりました。 ただし、各要素には、引数として使える値 (整数、文字 ...
https://man.mtool.work/python/3.14/library/ctypes.html
6. 式 (expression) 8115
6. 式 (expression) この章では、Python の式における個々の要素の意味について解説します。 構文上の注意: この章以降では、 文法の表記法 を字句解析ではなく構文の記述に使います。 構文規則の (選択肢の 1 つの) 形式が次のように記述され、 name : other ... es up the expression list. An empty pair of parentheses yields an empty tuple object. Since tuples are immutable, the same rules as for literals apply (i.e., two occurrences of the empty tuple may or may not yield the same object). Note that tuples ar ...
https://man.mtool.work/python/3.14/reference/expressions.html
PREV 1 NEXT