per page, with , order by , clip by
Results of 1 - 10 of about 22 for keywords (0.007 sec.)
共通のオブジェクト構造体 (common object structure) 13366
共通のオブジェクト構造体 (common object structure) Python のオブジェクト型の定義には、多数の構造体が使われます。 この節では、それらの構造体と使い方を説明します。 基本のオブジェクト型とマクロ すべての Python オブジェクトは、メモリ上の表現の先 ... ません。 関数のシグネチャは次のとおりです PyObject * PyCFunction ( PyObject * self , PyObject * args ); type PyCFunctionWithKeywords 次に属します: Stable ABI . METH_VARARGS | METH_KEYWORDS のシグネチャを持つ Python の呼び出し可能オブジェクトを C で実装する ... ための関数の型です。 シグネチャは次のとおりです。 PyObject * PyCFunctionWithKeywords ( PyObject * self , PyObject * args , PyObject * kwargs ); type PyCFunctionFast 次に属します: Stable ABI (バージョン 3.13 ... です。 PyObject * PyCFunctionFast ( PyObject * self , PyObject * const * args , Py_ssize_t nargs ); type PyCFunctionFastWithKeywords 次に属します: Stable ABI (バージョン 3.13 より). METH_FASTCALL | METH_KEYWORDS のシグネチャを持つ Python の呼び出し可能オブ ...
https://man.mtool.work/python/3.14/c-api/structures.html
functools --- 高階関数と呼び出し可能オブジェクトの操作 12777
functools --- 高階関数と呼び出し可能オブジェクトの操作 ソースコード: Lib/functools.py functools モジュールは、ほかの関数を操作したり返したりする高階関数のためのモジュールです。 一般に、このモジュールではあらゆる呼び出し可能オブジェクトを関数 ... 保するための番兵として使うシングルトンオブジェクトです。 Added in version 3.14. functools. partial ( func , / , * args , ** keywords ) 新しい partial オブジェクト を返します。このオブジェクトは呼び出されると位置引数 args とキーワード引数 keywords 付きで呼 ... び出しに際してさらなる引数が渡された場合、それらは args に付け加えられます。追加のキーワード引数が渡された場合には、それらで keywords を拡張または上書きします。おおよそ次のコードと等価です: def partial ( func , / , * args , ** keywords ): def newfunc ( * m ... ore_args , ** more_keywords ): return func ( * args , * more_args , ** ( keywords | more_keywords )) newfunc . func = func newfunc . args = args newfu ...
https://man.mtool.work/python/3.14/library/functools.html
ast --- 抽象構文木 10016
ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在 ... xpr ? returns , string ? type_comment , type_param * type_params ) | ClassDef ( identifier name , expr * bases , keyword * keywords , stmt * body , expr * decorator_list , type_param * type_params ) | Return ( expr ? value ) | Delete ( expr * targets ) | ... 3 and (x < 4) < 3 | Compare ( expr left , cmpop * ops , expr * comparators ) | Call ( expr func , expr * args , keyword * keywords ) | FormattedValue ( expr value , int conversion , expr ? format_spec ) | Interpolation ( expr value , constant str , int ... s ast. Is class ast. IsNot class ast. In class ast. NotIn 比較演算の演算子をあらわします。 class ast. Call ( func , args , keywords ) 関数呼び出しをあらわします。 func は関数で、多くの場合 Name または Attribute のオブジェクトです。 関数呼び出しの引数: ar ...
https://man.mtool.work/python/3.14/library/ast.html
引数の解釈と値の構築 9629
引数の解釈と値の構築 これらの関数は、独自の拡張関数やメソッドを作成するときに便利です。 追加の情報や例は Python インタプリタの拡張と埋め込み を参照してください。 最初に説明する 3 つの関数、 PyArg_ParseTuple() , PyArg_ParseTupleAndKeywords() ... 変更しません。 例えば、書式文字列 "OO|OO" は Python のシグネチャ f(a, b, c=None, d=None) に対応します。 $ PyArg_ParseTupleAndKeywords() のみ: Python の引数リストの残りの引数がキーワード専用であることを示します。 $ より前に | があれば省略可能で、なければ必須 ... します: Stable ABI . PyArg_ParseTuple() と同じですが、可変長の引数ではなく va_list を引数にとります。 int PyArg_ParseTupleAndKeywords ( PyObject * args , PyObject * kw , const char * format , char * const * keywords , ... ) 次に属します: Stable ABI . 位置引 ... 数とキーワード引数を受け取る関数の引数を解析し、ローカル変数に格納します。 keywords 引数は、ヌル終端の ASCII または UTF-8 エンコード C 文字列で指定された仮引数名の配列で、 NULL で終端する必要があります。 空 ...
https://man.mtool.work/python/3.14/c-api/arg.html
pprint --- データの整形表示 9040
pprint --- データの整形表示 ソースコード: Lib/pprint.py pprint モジュールは、任意の Python データ構造を、インタープリタへの入力に使える形式で「整形表示」する機能を提供します。 整形するデータ構造に Python の基本的な型以外のオブジェクトが含ま ... , 'downloads': {'last_day': -1, 'last_month': -1, 'last_week': -1}, 'home_page': 'https://github.com/pypa/sampleproject', 'keywords': 'sample setuptools development', 'license': 'MIT', 'maintainer': None, 'maintainer_email': None, 'name': 'sampleproject' ... e, 'docs_url': None, 'download_url': 'UNKNOWN', 'downloads': {...}, 'home_page': 'https://github.com/pypa/sampleproject', 'keywords': 'sample setuptools development', 'license': 'MIT', 'maintainer': None, 'maintainer_email': None, 'name': 'sampleproject' ... e, 'docs_url': None, 'download_url': 'UNKNOWN', 'downloads': {...}, 'home_page': 'https://github.com/pypa/sampleproject', 'keywords': 'sample setuptools development', 'license': 'MIT', 'maintainer': None, 'maintainer_email': None, 'name': 'sampleproject' ...
https://man.mtool.work/python/3.14/library/pprint.html
6. 式 (expression) 9040
6. 式 (expression) この章では、Python の式における個々の要素の意味について解説します。 構文上の注意: この章以降では、 文法の表記法 を字句解析ではなく構文の記述に使います。 構文規則の (選択肢の 1 つの) 形式が次のように記述され、 name : other ... ん: call : primary "(" [ argument_list [ "," ] | comprehension ] ")" argument_list : positional_arguments [ "," starred_and_keywords ] [ "," keywords_arguments ] | starred_and_keywords [ "," keywords_arguments ] | keywords_arguments positional_arguments : ... positional_item ( "," positional_item )* positional_item : assignment_expression | "*" expression starred_and_keywords : ( "*" expression | keyword_item ) ( "," "*" expression | "," keyword_item )* keywords_arguments : ( keyword_item | "**" ...
https://man.mtool.work/python/3.14/reference/expressions.html
1. Extending Python with C or C++ 8248
1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec ... ter the calling convention to be used for the C function. It should normally always be METH_VARARGS or METH_VARARGS | METH_KEYWORDS ; a value of 0 means that an obsolete variant of PyArg_ParseTuple() is used. When using only METH_VARARGS , the function s ... n as a tuple acceptable for parsing via PyArg_ParseTuple() ; more information on this function is provided below. The METH_KEYWORDS bit may be set in the third field if keyword arguments should be passed to the function. In this case, the C function shou ... ld accept a third PyObject * parameter which will be a dictionary of keywords. Use PyArg_ParseTupleAndKeywords() to parse the arguments to such a function. The method table must be referenced in the m ...
https://man.mtool.work/python/3.14/extending/extending.html
importlib.metadata -- パッケージメタデータへのアクセス 8046
importlib.metadata -- パッケージメタデータへのアクセス Added in version 3.8. バージョン 3.10 で変更: importlib.metadata は暫定的なものではなくなりました。 ソースコード: Lib/importlib/metadata/__init__.py importlib.metadata は、インストール済 ... age', 'Author', 'Author-email', 'Maintainer', 'Maintainer-email', 'License', 'Project-URL', 'Project-URL', 'Project-URL', 'Keywords', 'Platform', 'Classifier', 'Classifier', 'Classifier', 'Classifier', 'Classifier', 'Classifier', 'Classifier', 'Classifie ... ames 属性と groups 属性があります。 >>> sorted ( eps . groups ) ['console_scripts', 'distutils.commands', 'distutils.setup_keywords', 'egg_info.writers', 'setuptools.installation'] EntryPoints には、特定の属性に合うエントリポイントを選ぶ select() メソッド ...
https://man.mtool.work/python/3.14/library/importlib.metadata.html
10. 完全な文法仕様 8046
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... AMMAR ========================= # General grammatical elements and rules: # # * Strings with double quotes (") denote SOFT KEYWORDS # * Strings with single quotes (') denote KEYWORDS # * Upper case names (NAME) denote tokens in the Grammar/Tokens file # ...
https://man.mtool.work/python/3.14/reference/grammar.html
4. その他の制御フローツール 8046
4. その他の制御フローツール 前章で紹介した while 文の他にも、 Python にはいくつか制御フローツールがあり、本章で説明します。 4.1. if 文 おそらく最もおなじみの文型は if 文でしょう。例えば: >>> x = int ( input ( "Please enter an integer: " )) ... **name より前になければなりません)。 例えば、ある関数の定義を以下のようにすると: def cheeseshop ( kind , * arguments , ** keywords ): print ( "-- Do you have any" , kind , "?" ) print ( "-- I'm sorry, we're all out of" , kind ) for arg in arguments : pr ... int ( arg ) print ( "-" * 40 ) for kw in keywords : print ( kw , ":" , keywords [ kw ]) 呼び出しは以下のようになり: cheeseshop ( "Limburger" , "It's very runny, sir." , "It ...
https://man.mtool.work/python/3.14/tutorial/controlflow.html
PREV 1 2 3 NEXT