per page, with , order by , clip by
Results of 1 - 8 of about 8 for dirs (0.005 sec.)
The Python Profilers 12344
The Python Profilers Source code: Lib/profile.py and Lib/pstats.py Introduction to the profilers cProfile and profile provide deterministic profiling of Python programs. A profile is a set of statistics that describes how often and for how ... ata saved into a profile results file: import pstats from pstats import SortKey p = pstats . Stats ( 'restats' ) p . strip_dirs () . sort_stats ( - 1 ) . print_stats () The strip_dirs() method removed the extraneous path from all the module names. Th ... .Profile or profile.Profile object can be used as the profile data source. Stats objects have the following methods: strip_dirs ( ) This method for the Stats class removes all leading path information from file names. It is very useful in reducing th ... ct is considered to have its entries in a "random" order, as it was just after object initialization and loading. If strip_dirs() causes two function names to be indistinguishable (they are on the same line of the same filename, and have the same fun ...
https://man.mtool.work/python/3.14/library/profile.html
filecmp --- ファイルとディレクトリの比較 10266
filecmp --- ファイルとディレクトリの比較 ソースコード: Lib/filecmp.py filecmp モジュールはファイルとディレクトリを比較する関数を定義しています。 オプションによって、処理時間と正確性のさまざまなバランスを選べます。 ファイルの比較については d ... t_only a だけにあるファイルおよびサブディレクトリです。 right_only b だけにあるファイルおよびサブディレクトリです。 common_dirs a および b の両方にあるサブディレクトリです。 common_files a および b の両方にあるファイルです。 common_funny a および b の ... オペレータに基づいて内容が異なるファイルです。 funny_files a と b の両方に存在するものの、比較できなかったファイルです。 subdirs common_dirs 内の名前を dircmp インスタンスに対応付ける辞書です (このインスタンスの型が dircmp のサブクラス MyDirCmp であれ ... ります。 filecmp. DEFAULT_IGNORES Added in version 3.4. デフォルトで dircmp に無視されるディレクトリのリストです。 これは subdirs 属性を使用して 2 つのディレクトリを再帰的に探索して、共通の異なるファイルを示すための単純化された例です: >>> from filecmp ...
https://man.mtool.work/python/3.14/library/filecmp.html
Tkinter のダイアログ 9434
Tkinter のダイアログ tkinter.simpledialog --- Tkinter の標準入力ダイアログ ソースコード: Lib/tkinter/simpledialog.py tkinter.simpledialog モジュールには、ユーザーから値を受け取るための単純なモーダルダイアログを作る便利なクラスと関数がありま ... None ) 基本的なファイル選択ダイアログを作ります。 cancel_command ( event = None ) ダイアログウィンドウの終了を開始します。 dirs_double_event ( event ) ディレクトリのダブルクリックイベントのハンドラー。 dirs_select_event ( event ) ディレクトリのクリッ ...
https://man.mtool.work/python/3.14/library/dialog.html
pathlib --- オブジェクト指向のファイルシステムパス 9434
pathlib --- オブジェクト指向のファイルシステムパス Added in version 3.4. ソースコード: Lib/pathlib/ このモジュールはファイルシステムのパスを表すクラスを提供していて、様々なオペレーティングシステムについての適切な意味論をそれらのクラスに持た ... ィレクトリを無視しながら、各ディレクトリ内のすべてのファイルが使うバイト数を表示します。 from pathlib import Path for root , dirs , files in Path ( "cpython/Lib/concurrent" ) . walk ( on_error = print ): print ( root , "consumes" , sum (( root / file ) ... . stat () . st_size for file in files ), "bytes in" , len ( files ), "non-directory files" ) if '__pycache__' in dirs : dirs . remove ( '__pycache__' ) 次の例は shutil.rmtree() の簡単な実装です。 rmdir() は空でないディレクトリを削除できない ... る。 # 注意: 危険な処理です。 # 例えば top == Path('/') なら、すべてのファイルを削除してしまう可能性があります。 for root , dirs , files in top . walk ( top_down = False ): for name in files : ( root / name ) . unlink () for name in dirs : ( root / na ...
https://man.mtool.work/python/3.14/library/pathlib.html
shutil --- 高水準のファイル操作 9434
shutil --- 高水準のファイル操作 ソースコード: Lib/shutil.py shutil モジュールは、ファイルやファイルの集合に対するさまざまな高水準の操作を提供します。 特に、ファイルのコピーや削除を行う関数が用意されています。 個々のファイルを操作する場合は ... util. copytree ( src , dst , symlinks = False , ignore = None , copy_function = copy2 , ignore_dangling_symlinks = False , dirs_exist_ok = False ) src をルートとするディレクトリツリー全体を dst というディレクトリに再帰的にコピーし、コピー先のディレク ... 呼び出されます。 デフォルトでは copy2() が利用されますが、同じシグネチャを持つ関数 ( copy() など) ならどれでも利用可能です。 dirs_exist_ok が偽 (デフォルト) で dst がすでに存在する場合は、 FileExistsError を送出します。 dirs_exist_ok が真の場合は、既存 ... コールが利用されることがあります。 プラットフォーム依存の効率的なコピー操作 を参照してください。 バージョン 3.8 で変更: 引数 dirs_exist_ok が追加されました。 shutil. rmtree ( path , ignore_errors = False , onerror = None , * , onexc = None , dir_fd = N ...
https://man.mtool.work/python/3.14/library/shutil.html
venv --- 仮想環境の作成 8205
venv --- 仮想環境の作成 Added in version 3.3. ソースコード: Lib/venv/ venv モジュールは、軽量な「仮想環境」の作成に対応しています。 各仮想環境は、それぞれの site ディレクトリに独立した Python パッケージ群を持ちます。 仮想環境は、インストール ... description = 'Creates virtual Python ' 'environments in one or ' 'more target ' 'directories.' ) parser . add_argument ( 'dirs' , metavar = 'ENV_DIR' , nargs = '+' , help = 'A directory in which to create the ' 'virtual environment.' ) parser . add_ ... options . upgrade , nodist = options . nodist , nopip = options . nopip , verbose = options . verbose ) for d in options . dirs : builder . create ( d ) if __name__ == '__main__' : rc = 1 try : main () rc = 0 except Exception as e : print ( 'Error: % ...
https://man.mtool.work/python/3.14/library/venv.html
What's New in Python 2.0 6542
What's New in Python 2.0 著者 : A.M. Kuchling and Moshe Zadka はじめに 新 Python リリース、バージョン 2.0 は、2000 年 10 月 16 日にリリースされました。この記事では 2.0 のエキサイティングな新機能をカバーし、いくつかの有用な変更点をハイライト ... ort setup , Extension expat_extension = Extension ( 'xml.parsers.pyexpat' , define_macros = [( 'XML_NS' , None )], include_dirs = [ 'extensions/expat/xmltok' , 'extensions/expat/xmlparse' ], sources = [ 'extensions/pyexpat.c' , 'extensions/expat/xmlt ...
https://man.mtool.work/python/3.14/whatsnew/2.0.html
What's New In Python 3.8 6542
What's New In Python 3.8 編集者 : Raymond Hettinger この記事では Python 3.7 と比較した Python 3.8 の新機能を解説します。 Python 3.8 は 2019 年 10 月 14 日にリリースされました。 詳しくは 変更履歴 を参照してください。 概要 -- リリースハイライ ... lex.join() 関数は shlex.split() の逆操作を行います。 (Contributed by Bo Bayles in bpo-32102 .) shutil shutil.copytree() に dirs_exist_ok キーワード引数が追加されました。 (Contributed by Josh Bronson in bpo-20849 .) shutil.make_archive() は、 tarfile ...
https://man.mtool.work/python/3.14/whatsnew/3.8.html
PREV 1 NEXT