per page, with , order by , clip by
Results of 1 - 10 of about 48 for parameter (0.007 sec.)
inspect --- 活動中のオブジェクトを調査する 15555
inspect --- 活動中のオブジェクトを調査する ソースコード: Lib/inspect.py inspect モジュールは、モジュール、クラス、メソッド、関数、トレースバック、フレームオブジェクト、コードオブジェクトなど、実行中のオブジェクトの情報を取得する便利な関数を ... e__ qualified name __module__ クラスを定義しているモジュールの名前 __type_params__ ジェネリッククラスの 型パラメータ (type parameters) を含むタプル メソッド __doc__ ドキュメント文字列 __name__ メソッドの定義名 __qualname__ qualified name __func__ メソッド ... のマッピング; "return" キーは return アノテーションに予約されています __type_params__ ジェネリック関数の 型パラメータ (type parameters) を含むタプル __module__ この関数が定義されているモジュールの名前 traceback tb_frame このレベルのフレームオブジェクト tb_ ... * , b : int , ** kwargs ): ... pass >>> sig = signature ( foo ) >>> str ( sig ) '(a, *, b: int, **kwargs)' >>> str ( sig . parameters [ 'b' ]) 'b: int' >>> sig . parameters [ 'b' ] . annotation <class 'int'> 単純な関数やクラスから、 functools.partial() オ ...
https://man.mtool.work/python/3.14/library/inspect.html
8. 複合文 (compound statement) 12556
8. 複合文 (compound statement) 複合文には、他の文 (のグループ) が入ります; 複合文は、中に入っている他の文の実行の制御に何らかのやり方で影響を及ぼします。一般的には、複合文は複数行にまたがって書かれますが、全部の文を一行に連ねた単純な書き方も ... ユーザ定義関数オブジェクトを定義します ( 標準型の階層 節参照): funcdef : [ decorators ] "def" funcname [ type_params ] "(" [ parameter_list ] ")" [ "->" expression ] ":" suite decorators : decorator + decorator : "@" assignment_expression NEWLINE parameter_ ... list : defparameter ( "," defparameter )* "," "/" [ "," [ parameter_list_no_posonly ]] | parameter_list_no_posonly parameter_list_no_posonly : ... defparameter ( "," defparameter )* [ "," [ parameter_list_starargs ]] | parameter_list_starargs parameter_list_starargs : "*" star_para ...
https://man.mtool.work/python/3.14/reference/compound_stmts.html
symtable --- コンパイラーの記号表へのアクセス 9193
symtable --- コンパイラーの記号表へのアクセス ソースコード: Lib/symtable.py 記号表は、バイトコードを生成する直前にコンパイラーが AST から生成します。 コード内のすべての識別子のスコープを決める役割を担います。 symtable はこれらの記号表を調べ ... nnotations if from __future__ import annotations is active. TYPE_ALIAS = "type alias" type 構文の記号表に使われます。 TYPE_PARAMETERS = "type parameters" ジェネリック関数 または ジェネリッククラス の記号表に使われます。 TYPE_VARIABLE = "type variable" 型変 ... eType 列挙型のメンバーです。 バージョン 3.12 で変更: 戻り値として 'annotation' 、 'TypeVar bound' 、 'type alias' 、 'type parameter' が追加されました。 バージョン 3.13 で変更: 戻り値が SymbolTableType 列挙型のメンバーになりました。 返される文字列の具体的 ... のリストを返します。 class symtable. Function 関数またはメソッドの名前空間です。 このクラスは SymbolTable を継承します。 get_parameters ( ) この関数の引数名からなるタプルを返します。 get_locals ( ) この関数のローカル変数の名前からなるタプルを返します。 get_ ...
https://man.mtool.work/python/3.14/library/symtable.html
10. 完全な文法仕様 9012
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... ock | 'async' 'def' NAME [ type_params ] '(' [ params ] ')' [ '->' expression ] ':' [ func_type_comment ] block # Function parameters # ------------------- params : | parameters parameters : | slash_no_default param_no_default * param_with_default * [ sta ... tation param_maybe_default * [ kwds ] | '*' ',' param_maybe_default + [ kwds ] | kwds kwds : | '**' param_no_default # One parameter. This *includes* a following comma and type comment. # # There are three styles: # - No default # - With default # - Maybe ... ptional type comment # - No comma, optional type comment, must be followed by close paren # The latter form is for a final parameter without trailing comma. # param_no_default : | param ',' TYPE_COMMENT ? | param TYPE_COMMENT ? &')' param_no_default_star_ ...
https://man.mtool.work/python/3.14/reference/grammar.html
弱参照オブジェクト 8633
弱参照オブジェクト Python は 弱参照 を第一級オブジェクト (first-class object) としてサポートします。弱参照を直接実装する二種類の固有のオブジェクト型があります。第一は単純な参照オブジェクトで、第二はオリジナルのオブジェクトに対して可能な限り ... return a new reference, but is not guaranteed to create a new object; an existing proxy object may be returned. The second parameter, callback , can be a callable object that receives notification when ob is garbage collected; it should accept a single pa ...
https://man.mtool.work/python/3.14/c-api/weakref.html
ctypes --- Python 用の外部関数ライブラリ 8633
ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために ... call last): File "<stdin>" , line 1 , in <module> ctypes.ArgumentError : argument 2: TypeError: Don't know how to convert parameter 2 >>> 前述のとおり、整数、文字列、バイト列オブジェクト以外の Python の型は、必要な C のデータ型に変換できるよう、対応する ... を呼び出す ctypes の引数変換をカスタマイズして、自作クラスのインスタンスを関数の引数として使うこともできます。 ctypes は _as_parameter_ 属性を探し、その値を関数の引数として使用します。 この属性は、整数、文字列、バイト列、 ctypes のインスタンス、または _as_p ... meter_ 属性を持つオブジェクトでなければなりません。 >>> class Bottles : ... def __init__ ( self , number ): ... self . _as_parameter_ = number ... >>> bottles = Bottles ( 42 ) >>> printf ( b " %d bottles of beer \n " , bottles ) 42 bottles of beer 19 >>> ...
https://man.mtool.work/python/3.14/library/ctypes.html
xml.parsers.expat --- Expat を使用した高速な XML 解析 8254
xml.parsers.expat --- Expat を使用した高速な XML 解析 注釈 信頼できないデータや、認証されていないデータを解析する場合は、 XML のセキュリティ を参照してください。 xml.parsers.expat モジュールは、妥当性検証を行わない XML パーサー Expat の Pyt ... とを推奨します。 (基になる Expat ライブラリの関数は廃止予定とされています。) xmlparser. EntityDeclHandler ( entityName , is_parameter_entity , value , base , systemId , publicId , notationName ) すべてのエンティティ宣言に対して呼び出されます。 パラメータエ ... ティでは None です。 notationName 引数は、解析対象のエンティティでは None 、解析対象外のエンティティでは記法の名前です。 is_parameter_entity はパラメータエンティティでは真、一般エンティティでは偽です (ほとんどのアプリケーションは一般エンティティだけを扱えば ... ックが指定されていれば、外部エンティティは DefaultHandler で報告されます。 xmlparser. SkippedEntityHandler ( entityName , is_parameter_entity ) パーサーがエンティティの宣言を読まなかったために展開されないエンティティ参照に対して呼び出されます。 これは外部 D ...
https://man.mtool.work/python/3.14/library/pyexpat.html
http.client --- HTTP プロトコルクライアント 8073
http.client --- HTTP プロトコルクライアント ソースコード: Lib/http/client.py このモジュールでは HTTP および HTTPS プロトコルのクライアントサイドを実装しているクラスを定義しています。通常、このモジュールは直接使いません --- urllib.request モ ... acted from the host string if it has the form host:port , else the default HTTP port (80) is used. If the optional timeout parameter is given, blocking operations (like connection attempts) will timeout after that many seconds (if it is not given, the glo ... bal default timeout setting is used). The optional source_address parameter may be a tuple of a (host, port) to use as the source address the HTTP connection is made from. The optional blocksize par ...
https://man.mtool.work/python/3.14/library/http.client.html
smtplib --- SMTP プロトコルクライアント 8073
smtplib --- SMTP プロトコルクライアント ソースコード: Lib/smtplib.py smtplib モジュールは、SMTP または ESMTP の待ち受けデーモンが動作するインターネット上のマシンへメールを送るための、SMTP クライアントセッションオブジェクトを定義します。 SMT ... SMTP connection. It has methods that support a full repertoire of SMTP and ESMTP operations. If the optional host and port parameters are given, the SMTP connect() method is called with those parameters during initialization. If specified, local_hostname ... () . If the connect() call returns anything other than a success code, an SMTPConnectError is raised. The optional timeout parameter specifies a timeout in seconds for blocking operations like the connection attempt (if not specified, the global default t ... imeout setting will be used). If the timeout expires, TimeoutError is raised. The optional source_address parameter allows binding to some specific source address in a machine with multiple network interfaces, and/or to some specific sour ...
https://man.mtool.work/python/3.14/library/smtplib.html
calendar --- 一般的なカレンダーに関係する機能群 7694
calendar --- 一般的なカレンダーに関係する機能群 ソースコード: Lib/calendar.py このモジュールは Unix の cal プログラムのようなカレンダー出力を行い、それに加えてカレンダーに関する有益な関数群を提供します。標準ではこれらのカレンダーは(ヨーロッ ... he given width . If theday is 0 , return a string of spaces of the specified width, representing an empty day. The weekday parameter is unused. formatweek ( theweek , width ) 1 週間分を、改行を含まない文字列で返します。 width は、日付を中央揃えで表示する列 ... weekday , width ) Return a string representing the name of a single weekday formatted to the specified width . The weekday parameter is an integer representing the day of the week, where 0 is Monday and 6 is Sunday. formatweekheader ( width ) 曜日名のヘッ ...
https://man.mtool.work/python/3.14/library/calendar.html
PREV 1 2 3 4 5 NEXT