per page, with , order by , clip by
Results of 1 - 10 of about 104 for verbose (0.007 sec.)
optparse --- Parser for command line options — Python 3.14.8 ドキュメント 11011
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa ... in__' : parser = optparse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' ) opts , args = parser . parse_args () process ( args , output = opts . output , verbose = opts . ... verbose ) import argparse if __name__ == '__main__' : parser = argparse . ArgumentParser () parser . add_argument ( '-o' , '--outp ... ut' ) parser . add_argument ( '-v' , dest = 'verbose' , action = 'store_true' ) parser . add_argument ( 'rest' , nargs = '*' ) args = parser . parse_args () process ( args . r ...
https://man.mtool.work/python/3.14/library/optparse.html
optparse --- Parser for command line options — Python 3.14.8 ドキュメント 11011
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa ... in__' : parser = optparse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' ) opts , args = parser . parse_args () process ( args , output = opts . output , verbose = opts . ... verbose ) import argparse if __name__ == '__main__' : parser = argparse . ArgumentParser () parser . add_argument ( '-o' , '--outp ... ut' ) parser . add_argument ( '-v' , dest = 'verbose' , action = 'store_true' ) parser . add_argument ( 'rest' , nargs = '*' ) args = parser . parse_args () process ( args . r ...
https://man.mtool.work/python/3.14/library/optparse.html
Argparse チュートリアル — Python 3.14.8 ドキュメント 10792
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Argparse チュー ... prog.py $ python prog.py --help usage: prog.py [-h] options: -h, --help show this help message and exit $ python prog.py --verbose usage: prog.py [-h] prog.py: error: unrecognized arguments: --verbose $ python prog.py foo usage: prog.py [-h] prog.py: er ... 。そうなるようにコードを修正してみましょう: import argparse parser = argparse . ArgumentParser () parser . add_argument ( "--verbose" , help = "increase output verbosity" , action = "store_true" ) args = parser . parse_args () if args . verbose : print ( ... "verbosity turned on" ) 実行してみましょう: $ python prog.py --verbose verbosity turned on $ python prog.py --verbose 1 usage: prog.py [-h] [--verbose] prog.py: error: unrecognized arguments: 1 ...
https://man.mtool.work/python/3.14/howto/argparse.html
Argparse チュートリアル — Python 3.14.8 ドキュメント 10792
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Argparse チュー ... prog.py $ python prog.py --help usage: prog.py [-h] options: -h, --help show this help message and exit $ python prog.py --verbose usage: prog.py [-h] prog.py: error: unrecognized arguments: --verbose $ python prog.py foo usage: prog.py [-h] prog.py: er ... 。そうなるようにコードを修正してみましょう: import argparse parser = argparse . ArgumentParser () parser . add_argument ( "--verbose" , help = "increase output verbosity" , action = "store_true" ) args = parser . parse_args () if args . verbose : print ( ... "verbosity turned on" ) 実行してみましょう: $ python prog.py --verbose verbosity turned on $ python prog.py --verbose 1 usage: prog.py [-h] [--verbose] prog.py: error: unrecognized arguments: 1 ...
https://man.mtool.work/python/3.14/howto/argparse.html
functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 10135
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools --- ... appens on the type of the first argument: >>> from functools import singledispatch >>> @singledispatch ... def fun ( arg , verbose = False ): ... if verbose : ... print ( "Let me just say," , end = " " ) ... print ( arg ) To add overloaded implementatio ... types, the decorator will infer the type of the first argument automatically: >>> @fun . register ... def _ ( arg : int , verbose = False ): ... if verbose : ... print ( "Strength in numbers, eh?" , end = " " ) ... print ( arg ) ... >>> @fun . register ... ... def _ ( arg : list , verbose = False ): ... if verbose : ... print ( "Enumerate this:" ) ... for i , elem in enumerate ( arg ): ... print ( i , elem ) ...
https://man.mtool.work/python/3.14/library/functools.html
functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 10135
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools --- ... appens on the type of the first argument: >>> from functools import singledispatch >>> @singledispatch ... def fun ( arg , verbose = False ): ... if verbose : ... print ( "Let me just say," , end = " " ) ... print ( arg ) To add overloaded implementatio ... types, the decorator will infer the type of the first argument automatically: >>> @fun . register ... def _ ( arg : int , verbose = False ): ... if verbose : ... print ( "Strength in numbers, eh?" , end = " " ) ... print ( arg ) ... >>> @fun . register ... ... def _ ( arg : list , verbose = False ): ... if verbose : ... print ( "Enumerate this:" ) ... for i , elem in enumerate ( arg ): ... print ( i , elem ) ...
https://man.mtool.work/python/3.14/library/functools.html
getopt --- C-style parser for command line options — Python 3.14.8 ドキュメント 9633
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Superseded Modules » getopt --- C-style parser for command line options テーマ 自動 ライト ダーク | getopt --- C-style parser for c ... ion and exit: print ( err ) # will print something like "option -a not recognized" usage () sys . exit ( 2 ) output = None verbose = False for o , a in opts : if o == "-v" : verbose = True elif o in ( "-h" , "--help" ): usage () sys . exit () elif o in ... ( "-o" , "--output" ): output = a else : assert False , "unhandled option" process ( args , output = output , verbose = verbose ) if __name__ == "__main__" : main () Note that an equivalent command line interface could be produced with less ... in__' : parser = optparse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' ) opts , args = parser . parse_args () process ( args , output = opts . output , verbose = opts . ...
https://man.mtool.work/python/3.14/library/getopt.html
getopt --- C-style parser for command line options — Python 3.14.8 ドキュメント 9556
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Superseded Modules » getopt --- C-style parser for command line options テーマ 自動 ライト ダーク | getopt --- C-style parser for c ... ion and exit: print ( err ) # will print something like "option -a not recognized" usage () sys . exit ( 2 ) output = None verbose = False for o , a in opts : if o == "-v" : verbose = True elif o in ( "-h" , "--help" ): usage () sys . exit () elif o in ... ( "-o" , "--output" ): output = a else : assert False , "unhandled option" process ( args , output = output , verbose = verbose ) if __name__ == "__main__" : main () Note that an equivalent command line interface could be produced with less ... in__' : parser = optparse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' ) opts , args = parser . parse_args () process ( args , output = opts . output , verbose = opts . ...
https://man.mtool.work/python/3.14/library/getopt.html
Debugging C API extensions and CPython Internals with GDB — Python 3.14.8 ドキ... 8538
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Debugging C API extensions and CPython Internals with GDB テーマ 自動 ライト ダーク | Debugging C API extensions and CPython Internals with GDB ¶ ... rame 0x7fffd00019d0, for file /home/david/coding/python-svn/Lib/threading.py, line 155, in _acquire_restore (self=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote ... 40, for file /home/david/coding/python-svn/Lib/threading.py, line 269, in wait (self=<_Condition(_Condition__lock=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote ... d at remote 0xd803e0>, release=<instancemethod at remote 0xd802e0>, _acquire_restore=<instancemethod at remote 0xd7ee60>, _Verbose__verbose=False, _Condition__waiters=[]) at remote 0xd7fd10>, timeout=None, waiter=<thread.lock at remote 0x858a90>, saved_ ...
https://man.mtool.work/python/3.14/howto/gdb_helpers.html
Debugging C API extensions and CPython Internals with GDB — Python 3.14.8 ドキ... 8538
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Debugging C API extensions and CPython Internals with GDB テーマ 自動 ライト ダーク | Debugging C API extensions and CPython Internals with GDB ¶ ... rame 0x7fffd00019d0, for file /home/david/coding/python-svn/Lib/threading.py, line 155, in _acquire_restore (self=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote ... 40, for file /home/david/coding/python-svn/Lib/threading.py, line 269, in wait (self=<_Condition(_Condition__lock=<_RLock(_Verbose__verbose=False, _RLock__owner=140737354016512, _RLock__block=<thread.lock at remote 0x858770>, _RLock__count=1) at remote ... d at remote 0xd803e0>, release=<instancemethod at remote 0xd802e0>, _acquire_restore=<instancemethod at remote 0xd7ee60>, _Verbose__verbose=False, _Condition__waiters=[]) at remote 0xd7fd10>, timeout=None, waiter=<thread.lock at remote 0x858a90>, saved_ ...
https://man.mtool.work/python/3.14/howto/gdb_helpers.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT