per page, with , order by , clip by
Results of 1 - 10 of about 19 for shlex (0.005 sec.)
shlex --- 単純な字句解析 15675
shlex --- 単純な字句解析 ソースコード: Lib/shlex.py shlex クラスは Unix シェルに似た、単純な構文に対する字句解析器を簡単に書けるようにします。 このクラスはしばしば、 Python アプリケーションのための実行制御ファイルのような小規模言語を書く場合 ... や、引用符で囲まれた文字列を解析する場合に便利です。 shlex モジュールは以下の関数を定義します。 shlex. split ( s , comments = False , posix = True ) シェルに似た文法を使って、文字列 ... s を分割します。 comments が False (デフォルト値) の場合、受理した文字列内のコメントを解析しません ( shlex インスタンスの commenters メンバの値を空文字列にします)。この関数はデフォルトでは POSIX モードで動作し、 posix 引数が偽の場 ... 動作します。 バージョン 3.12 で変更: s 引数に None を渡すと、 sys.stdin から読み込む代わりに例外を送出するようになりました。 shlex. join ( split_command ) リスト split_command のトークンを連結して文字列を返します。 この関数は split() の逆の操作を行います ...
https://man.mtool.work/python/3.14/library/shlex.html
Unix 固有のサービス 9084
Unix 固有のサービス 本章に記述されたモジュールは、Unix オペレーティングシステム、あるいはそれから派生した多くのものに固有の機能のためのインターフェースを提供します。その概要を以下に述べます: shlex --- 単純な字句解析 shlex オブジェクト 解析規 ...
https://man.mtool.work/python/3.14/library/unix.html
プログラムフレームワーク 8623
プログラムフレームワーク この章はメンテナンスされなくなり、ここに含まれていたモジュールはそれぞれの分野のドキュメントに移動しました。 cmd — コマンドラインインターフェースライブラリ shlex — Unix 固有のサービス turtle — Tk を用いたグラフィカル ...
https://man.mtool.work/python/3.14/library/frameworks.html
subprocess --- サブプロセス管理 8315
subprocess --- サブプロセス管理 ソースコード: Lib/subprocess.py subprocess モジュールでは、新しいプロセスを生成し、その標準入力、標準出力、標準エラー出力のパイプに接続して、終了コードを取得できます。 このモジュールは、次のような古いモジュー ... さない場合にのみ可能です。 注釈 特に複雑な場合、シェルコマンドを引数のシーケンスにどう分けるかは明らかでないかもしれません。 shlex.split() を使うと、 args を適切に分割する方法を確認できます。 >>> import shlex , subprocess >>> command_line = input () /bi ... n/vikings -input eggs.txt -output "spam spam.txt" -cmd "echo '$MONEY'" >>> args = shlex . split ( command_line ) >>> print ( args ) ['/bin/vikings', '-input', 'eggs.txt', '-output', 'spam spam.txt', '-cmd', "ec ... アプリケーション側ですべての空白やメタ文字を適切にクォートする必要があります。 一部のプラットフォーム では、このエスケープに shlex.quote() を使えます。 Windows では、このライブラリに渡す引数にかかわらず、バッチファイル ( *.bat または *.cmd ) が OS によっ ...
https://man.mtool.work/python/3.14/library/subprocess.html
__main__ --- トップレベルのコード環境 8264
__main__ --- トップレベルのコード環境 Python では、 __main__ という特別な名前が次の二つの重要な用途で使われます: プログラムのトップレベル環境の名前。 __name__ == '__main__' という式でチェックすることができる。 Python パッケージにおける __ma ... や正確さにつながります。 最もよくあるのが、プログラムの主要な処理を main 関数の中にカプセル化することです: # echo.py import shlex import sys def echo ( phrase : str ) -> None : """print を呼び出すだけのダミーのラッパー。""" # 説明のため、この関数に有用 ... 可能な処理が # 含まれていると考える print ( phrase ) def main () -> int : """入力された引数を標準出力に出力する""" phrase = shlex . join ( sys . argv ) echo ( phrase ) return 0 if __name__ == '__main__' : sys . exit ( main ()) # sys.exit の使い方は次の ...
https://man.mtool.work/python/3.14/library/__main__.html
サブプロセス 8093
サブプロセス ソースコード: Lib/asyncio/subprocess.py , Lib/asyncio/base_subprocess.py このセクションはサブプロセスの生成と管理を行う高水準の async/await asyncio API について説明します。 以下は、 asyncio モジュールがどのようにシェルコマンドを ... ことは、アプリケーション側の責任で確実に行ってください。シェルコマンドを構成する文字列内の空白文字と特殊文字のエスケープは、 shlex.quote() 関数を使うと適切に行うことができます。 バージョン 3.10 で変更: loop パラメータが削除されました。 注釈 サブプロセス ...
https://man.mtool.work/python/3.14/library/asyncio-subprocess.html
Pythonモジュール索引 8093
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... lect Wait for I/O completion on multiple streams. selectors High-level I/O multiplexing. shelve Python object persistence. shlex Simple lexical analysis for Unix shell-like languages. shutil High-level file operations, including copying. signal Set ha ...
https://man.mtool.work/python/3.14/py-modindex.html
What's New In Python 3.8 8093
What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ ... 70 。) py_compile py_compile.compile() がサイレントモードに対応しました。 (Contributed by Joannah Nanjekye in bpo-22640 .) shlex 新しい shlex.join() 関数は shlex.split() の逆操作を行います。 (Contributed by Bo Bayles in bpo-32102 .) shutil shutil.copy ...
https://man.mtool.work/python/3.14/whatsnew/3.8.html
Python ドキュメントの目次 8042
Python ドキュメントの目次 What's New in Python What's new in Python 3.14 概要 -- リリースハイライト 新しい機能 PEP 649 と PEP 749 : アノテーションの遅延評価 PEP 734 : 複数インタープリタ機能が標準ライブラリに追加 PEP 750 : テンプレート文字列 ... elib inspect io itertools json.tool logging math mmap multiprocessing os os.path pathlib pickle plistlib pprint py_compile shlex shutil socket ssl statistics sys tarfile threading tokenize tkinter time typing unicodedata unittest venv weakref xml xmlr ... importlib inspect json logging math multiprocessing os pathlib pdb pickle pickletools pydoc random re readline rlcompleter shlex site sqlite3 socket socketserver ssl statistics struct subprocess sys telnetlib time timeit tkinter traceback tracemalloc ... hmac http html imaplib inspect io itertools logging math mmap multiprocessing nntplib os pdb pickle pydoc re sched select shlex shutil signal smtpd smtplib socket socketserver sqlite3 ssl stat struct subprocess sys tarfile tempfile textwrap threading ...
https://man.mtool.work/python/3.14/contents.html
Python 標準ライブラリ 8042
Python 標準ライブラリ このライブラリリファレンスマニュアルは、Python に付属する標準ライブラリについて説明します。 Python の配布物に含まれることが多い、オプションのコンポーネントの一部も説明します。 別の文書である Python 言語リファレンス では ... なルーチン群 winreg --- Windows レジストリへのアクセス winsound --- Windows 用の音声再生インターフェース Unix 固有のサービス shlex --- 単純な字句解析 posix --- 最も一般的な POSIX システムコール群 pwd --- パスワードデータベース grp --- グループデータベー ...
https://man.mtool.work/python/3.14/library/
PREV 1 2 NEXT