Results of 1 - 10 of about 22 for constructor (0.003 sec.)
- copyreg --- pickle サポート関数を登録する 15083
- copyreg --- pickle サポート関数を登録する ソースコード: Lib/copyreg.py copyreg モジュールは、特定のオブジェクトを pickle 化する際に使う関数を定義する手段を提供します。 pickle と copy モジュールは、そのオブジェクトを pickle 化またはコピーする
...クタに関する設定情報を提供します。 このようなコンストラクタには、ファクトリ関数やクラスインスタンスなどがあります。 copyreg. constructor ( object ) object を有効なコンストラクタであると宣言します。 object が呼び出し可能でなければ(したがってコンストラクタとして...有効でなければ)、 TypeError を発生します。 copyreg. pickle ( type , function , constructor_ob = None ) function が型 type のオブジェクトに対する"リダクション"関数として使われるように宣言します。 function は文字列か...要素を含んだタプルを返さなければなりません。 function のインターフェースについての詳細は dispatch_table を参照してください。 constructor_ob は古い機能で、現在は無視されますが、値を渡す場合は呼び出し可能 (callable) でなければなりません。 pickler オブジェクトま... - https://man.mtool.work/python/3.14/library/copyreg.html
- webbrowser --- 便利なウェブブラウザコントローラー 11110
- webbrowser --- 便利なウェブブラウザコントローラー ソースコード: Lib/webbrowser.py webbrowser モジュールは、ウェブ上のドキュメントをユーザーに表示するための高水準インターフェースを提供します。 ほとんどの場合、このモジュールの open() 関数を呼
...もし using が None なら、呼び出した環境に適したデフォルトブラウザのコントローラーを返します。 webbrowser. register ( name , constructor , instance = None , * , preferred = False ) ブラウザの種類 name を登録します。ブラウザの種類が登録されたら、 get() でそのブ...ラウザのコントローラーを呼び出すことができます。 instance が指定されなかったり、 None なら、インスタンスが必要な時には constructor がパラメータなしに呼び出されて作られます。 instance が指定されたら、 constructor は呼び出されないので、 None でかまいません... - https://man.mtool.work/python/3.14/library/webbrowser.html
- リフレクション 8972
- リフレクション PyObject * PyEval_GetBuiltins ( void ) 戻り値: 借用参照。 次に属します: Stable ABI . バージョン 3.13 で非推奨: 代わりに PyEval_GetFrameBuiltins() を使ってください。 現在の実行フレーム内のビルトインの辞書か、もし実行中のフレー
...unc ) 次に属します: Stable ABI . func の型に応じた説明文字列を返します。 戻り値には、関数とメソッドに対する "()" のほか、" constructor"、" instance"、" object" があります。 PyEval_GetFuncName() の戻り値に連結すると、 func の説明になります。 他のマニュアルの... - https://man.mtool.work/python/3.14/c-api/reflection.html
- ftplib --- FTP プロトコルクライアント 8972
- ftplib --- FTP プロトコルクライアント ソースコード: Lib/ftplib.py このモジュールでは FTP クラスと、それに関連するいくつかの項目を定義しています。 FTP クラスは、FTPプロトコルのクライアント側の機能を備えています。このクラスを使うとFTPのいろい
...) -- The username to log in with (default: 'anonymous' ). If given, login(host, passwd, acct) is implicitly called by the constructor. passwd ( str ) -- The password to use when logging in. If not given, and if passwd is the empty string or "-" , a passwor...) -- The username to log in with (default: 'anonymous' ). If given, login(host, passwd, acct) is implicitly called by the constructor. passwd ( str ) -- The password to use when logging in. If not given, and if passwd is the empty string or "-" , a passwor... - https://man.mtool.work/python/3.14/library/ftplib.html
- The Python Profilers 8972
- 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
...profiler data is done using the Stats class. class pstats. Stats ( *filenames or profile , stream=sys.stdout ) This class constructor creates an instance of a "statistics object" from a filename (or list of filenames) or from a Profile instance. Output wil...l be printed to the stream specified by stream . The file selected by the above constructor must have been created by the corresponding version of profile or cProfile . To be specific, there is no file compatibilit... - https://man.mtool.work/python/3.14/library/profile.html
- コルーチンとタスク 8669
- コルーチンとタスク この節では、コルーチンと Task を利用する高レベルの asyncio の API の概略を解説します。 コルーチン ソースコード: Lib/asyncio/coroutines.py async/await 構文で宣言された コルーチン は、 asyncio を使ったアプリケーションを書く
...えば、タスクの実行順序は変わる可能性が高いでしょう。 Added in version 3.12. asyncio. create_eager_task_factory ( custom_task_constructor ) eager_task_factory() と同様に即時実行するタスクファクトリーを作成します。 新しいタスクの作成には、デフォルトの Task の代...わりに、指定された custom_task_constructor を使います。 custom_task_constructor は Task.__init__ と同じシグネチャを持つ 呼び出し可能オブジェクト でなければなりません... - https://man.mtool.work/python/3.14/library/asyncio-task.html
- shelve --- Python オブジェクトの永続化 8366
- shelve --- Python オブジェクトの永続化 ソースコード: Lib/shelve.py "シェルフ (shelf, 棚)" は辞書に似た永続性を持つオブジェクトです。 "dbm" データベースとの違いは、シェルフの値 (キーではありません!) は実質上どんな Python オブジェクトにも ---
...re available in the third-party bsddb module from pybsddb but not in other database modules. The dict object passed to the constructor must support those methods. This is generally accomplished by calling one of bsddb.hashopen() , bsddb.btopen() or bsddb.rn... - https://man.mtool.work/python/3.14/library/shelve.html
- スレッドセーフ性の保証 8063
- スレッドセーフ性の保証 このページでは、Python のフリースレッドビルドにおける組み込み型のスレッドセーフ性の保証を説明します。 ここで説明する保証は、 GIL を無効にして Python を使う場合 (フリースレッドモード) に適用されます。 GIL が有効な場合、
...スを共有する場合は、外部での同期を検討してください。 dict オブジェクトのスレッドセーフ性 Creating a dictionary with the dict constructor is atomic when the argument to it is a dict or a tuple . When using the dict.fromkeys() method, dictionary creation is ato... - https://man.mtool.work/python/3.14/builtins/threadsafety.html
- pprint --- データの整形表示 8063
- pprint --- データの整形表示 ソースコード: Lib/pprint.py pprint モジュールは、任意の Python データ構造を、インタープリタへの入力に使える形式で「整形表示」する機能を提供します。 整形するデータ構造に Python の基本的な型以外のオブジェクトが含ま
...f object as a string. indent , width , depth , compact , sort_dicts and underscore_numbers are passed to the PrettyPrinter constructor as formatting parameters and their meanings are as described in the documentation above. pprint. isreadable ( object ) オブ... - https://man.mtool.work/python/3.14/library/pprint.html
- shlex --- 単純な字句解析 8063
- shlex --- 単純な字句解析 ソースコード: Lib/shlex.py shlex クラスは Unix シェルに似た、単純な構文に対する字句解析器を簡単に書けるようにします。 このクラスはしばしば、 Python アプリケーションのための実行制御ファイルのような小規模言語を書く場合
...shells like bash , dash , and sh . To take advantage of this compatibility, specify the punctuation_chars argument in the constructor. This defaults to False , which preserves pre-3.6 behaviour. However, if it is set to True , then parsing of the character... - https://man.mtool.work/python/3.14/library/shlex.html