Results of 1 - 10 of about 18 for rest (0.007 sec.)
- ftplib --- FTP プロトコルクライアント 15116
- ftplib --- FTP プロトコルクライアント ソースコード: Lib/ftplib.py このモジュールでは FTP クラスと、それに関連するいくつかの項目を定義しています。 FTP クラスは、FTPプロトコルのクライアント側の機能を備えています。このクラスを使うとFTPのいろい
...mport FTP >>> with FTP ( "ftp1.at.proftpd.org" ) as ftp : ... ftp . login () ... ftp . dir () ... '230 Anonymous login ok, restrictions apply.' dr-xr-xr-x 9 ftp ftp 154 May 6 10:43 . dr-xr-xr-x 9 ftp ftp 154 May 6 10:43 .. dr-xr-xr-x 5 ftp ftp 4096 M...す。 引数 self , cmd を指定して 監査イベント ftplib.sendcmd を送出します。 retrbinary ( cmd , callback , blocksize = 8192 , rest = None ) バイナリ転送モードでファイルを取得します。 パラメータ : cmd ( str ) -- 適切な RETR コマンド: "RETR filename " 。...et オブジェクトから読み取るチャンクの最大サイズ。 callback に渡すデータの最大サイズでもあります。 デフォルトは 8192 です。 rest ( int ) -- サーバーに送信する REST コマンド。 transfercmd() メソッドの rest 引数の説明を参照してください。 retrlines ( cmd... - https://man.mtool.work/python/3.14/library/ftplib.html
- 組み込み例外 9900
- 組み込み例外 Python において、すべての例外は BaseException から派生したクラスのインスタンスでなければなりません。特定のクラスを言及する except 節を伴う try 文において、その節はそのクラスから派生した例外クラスも処理しますが、そのクラスの派生
...ェクト以外の任意の呼び出し可能オブジェクトを指定できるようになりました。 split ( condition ) subgroup() と似てますが (match, rest) のペアを返します。 match は subgroup(condition) で rest は残りのマッチしない部分です。 derive ( excs ) 同じ message の例外...) >>> e . __cause__ = Exception ( "cause" ) >>> try : ... raise e ... except Exception as e : ... exc = e ... >>> match , rest = exc . split ( ValueError ) >>> exc , exc . __context__ , exc . __cause__ , exc . __notes__ (MyGroup('eg', [ValueError(1).... __cause__ , match . __notes__ (MyGroup('eg', [ValueError(1)]), Exception('context'), Exception('cause'), ['a note']) >>> rest , rest . __context__ , rest . __cause__ , rest . __notes__ (MyGroup('eg', [TypeError(2)]), Exception('context'), Exception... - https://man.mtool.work/python/3.14/builtins/exceptions.html
- ast --- 抽象構文木 9625
- ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在
...( constant value ) | MatchSequence ( pattern * patterns ) | MatchMapping ( expr * keys , pattern * patterns , identifier ? rest ) | MatchClass ( expr cls , pattern * patterns , identifier * kwd_attrs , pattern * kwd_patterns ) | MatchStar ( identifie...r ? name ) -- The optional "rest" MatchMapping parameter handles capturing extra mapping keys | MatchAs ( pattern ? pattern , identifier ? name ) | MatchOr...に、残りの要素を含むリストをその名前に束縛します。 >>> print ( ast . dump ( ast . parse ( """ ... match x: ... case [1, 2, *rest]: ... ... ... case [*_]: ... ... ... """ ), indent = 4 )) Module( body=[ Match( subject=Name(id='x', ctx=Load()), cases=[... - https://man.mtool.work/python/3.14/library/ast.html
- What's New In Python 3.0 8802
- What's New In Python 3.0 著者 : Guido van Rossum この記事では 2.6 と比較した Python 3.0 での新機能を解説します。 Python 3.0、あるいは "Python 3000"、 "Py3K" は初めて 意図的に後方非互換にした Python のリリースです。 Python 3.0 は2008年12月3日
...することが出来るようになります。 nonlocal は新しく予約語になりました。 PEP 3132 : 拡張されたイテレータのアンパック。 a, b, *rest = some_sequence のようなことを書けるようになりました。 *rest, a = stuff も出来ます。 rest オブジェクトは常に (空かもしれな...くても) リストです; 右辺には任意のイテラブルを置けます。例えば: ( a , * rest , b ) = range ( 5 ) これは a に 0 を、 b に 4 を、そして rest に [1, 2, 3] をセットします。 辞書内包表記: {k: v for k, v i... - https://man.mtool.work/python/3.14/whatsnew/3.0.html
- getopt --- C 形式のコマンドラインオプション解析 8664
- getopt --- C 形式のコマンドラインオプション解析 ソースコード: Lib/getopt.py 注釈 このモジュールは機能が完成したものとされています。 この API より宣言的で拡張しやすい代替手段として、 optparse モジュールがあります。 コマンドライン引数処理のさ
...t ( '-o' , '--output' ) parser . add_argument ( '-v' , dest = 'verbose' , action = 'store_true' ) parser . add_argument ( 'rest' , nargs = '*' ) args = parser . parse_args () process ( args . rest , output = args . output , verbose = args . verbose )... - https://man.mtool.work/python/3.14/library/getopt.html
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー 8253
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー Added in version 3.2. ソースコード: Lib/argparse.py 注釈 argparse は基本的なコマンドラインアプリケーションの実装に推奨される標準ライブラリのモジュールですが、動作を厳密
...can be enabled by setting suggest_on_error to True . Note that this only applies for arguments when the choices specified are strings: >>> parser = argparse . ArgumentParser ( suggest_on_error = True ) >>> parser . add_argument ( '--action' , choices...type キーワードに指定するものは、せいぜい上記の3種類の例外を発生するくらいの、お手軽な変換に限るべきです。より複雑な (interesting) エラー処理、またはリソース管理を伴うものは、引数を解析したあとに別個の処理として行うべきです。 たとえば、JSON または Y...と parse_intermixed_args() の違いを表しています: 前者は ['2', '3'] を、解析されない引数として返し、後者は全ての位置引数を rest に入れて返しています: >>> parser = argparse . ArgumentParser () >>> parser . add_argument ( '--foo' ) >>> parser . add_arg... - https://man.mtool.work/python/3.14/library/argparse.html
- 4. その他の制御フローツール 8253
- 4. その他の制御フローツール 前章で紹介した while 文の他にも、 Python にはいくつか制御フローツールがあり、本章で説明します。 4.1. if 文 おそらく最もおなじみの文型は if 文でしょう。例えば: >>> x = int ( input ( "Please enter an integer: " ))
...一致します。重要な例外として、イテレーターや文字列ではマッチしません。 シーケンスパターンは拡張アンパックをサポート: [x, y, *rest] と (x, y, *rest) はアンパック代入として同じように動作します。 * のあとの変数名は _ でもよく、そのため (x, y, *_) は最低で...dth" と "latency" の値を取り込みます。シーケンスパターンとは異なり、それ以外のキーは無視されます。アンパッキングのような **rest もサポートされています(しかし、 **_ は冗長なため禁止されています)。 サブパターンでは as キーワードを使用して値を取り込み... - https://man.mtool.work/python/3.14/tutorial/controlflow.html
- faulthandler --- Python トレースバックをダンプする 7978
- faulthandler --- Python トレースバックをダンプする Added in version 3.3. このモジュールには、Python のトレースバックを明示的にダンプしたり、フォールトの発生時、タイムアウト後、ユーザーシグナルの受信時にダンプしたりする関数があります。 SIGSE
...on/python", at +0x32ac1b [0x5b27f7d82c1b] Binary file "/opt/python/python", at Py_RunMain+0x31 [0x5b27f7d82ebe] <truncated rest of calls> Segmentation fault 他のマニュアルの関連ページ PHP use_soap_error_handler() PHP error.gettrace PHP error.gettrace... - https://man.mtool.work/python/3.14/library/faulthandler.html
- optparse --- コマンドラインオプションのパーサー 7978
- optparse --- コマンドラインオプションのパーサー ソースコード: Lib/optparse.py 引数解析ライブラリの選択 標準ライブラリには、引数を解析するライブラリが三つあります。 getopt : C の手続き型の getopt API に忠実に対応するモジュールです。 optparse
...t ( '-o' , '--output' ) parser . add_argument ( '-v' , dest = 'verbose' , action = 'store_true' ) parser . add_argument ( 'rest' , nargs = '*' ) args = parser . parse_args () process ( args . rest , output = args . output , verbose = args . verbose )...re option values are by default stored (an instance of optparse.Values). This lets callbacks use the same mechanism as the rest of optparse for storing option values; you don't need to mess around with globals or closures. You can also access or modi... - https://man.mtool.work/python/3.14/library/optparse.html
- tokenize --- Python ソース用のトークナイザー 7978
- 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
...ses are "e-007" (Windows) and "e-07" (not Windows). Since we're only showing 12 digits, and the 13th isn't close to 5, the rest of the output should be platform-independent. >>> exec(s) #doctest: +ELLIPSIS -3.21716034272e-0...7 Output from calculatio... - https://man.mtool.work/python/3.14/library/tokenize.html