Results of 1 - 10 of about 49 for handle (0.007 sec.)
- html.parser --- HTML と XHTML のシンプルなパーサー 15907
- html.parser --- HTML と XHTML のシンプルなパーサー ソースコード: Lib/html/parser.py このモジュールでは HTMLParser クラスを定義します。このクラスは HTML (ハイパーテキスト記述言語、HyperText Mark-up Language) および XHTML で書式化されているテ
...つけるたびに表示するシンプルな HTML パーサーです。 from html.parser import HTMLParser class MyHTMLParser ( HTMLParser ): def handle_starttag ( self , tag , attrs ): print ( "Encountered a start tag:" , tag ) def handle_endtag ( self , tag ): print ( "Enc...ountered an end tag :" , tag ) def handle_data ( self , data ): print ( "Encountered some data :" , data ) parser = MyHTMLParser () parser . feed ( '<html><head><ti...はマークアップ要素が見つかる度に呼び出されます。これらはサブクラスで上書きされることを想定されています。基底クラスの実装は ( handle_startendtag() を除き) 何もしません: HTMLParser. handle_starttag ( tag , attrs ) このメソッドは要素の開始タグを扱うために呼... - https://man.mtool.work/python/3.14/library/html.parser.html
- socketserver --- ネットワークサーバーのフレームワーク 12481
- socketserver --- ネットワークサーバーのフレームワーク ソースコード: Lib/socketserver.py socketserver モジュールを使うと、ネットワークサーバを簡単に作成できます。 利用可能な環境 : not WASI. このモジュールは WebAssembly では動作しないか、利用
...ットフォーム を見てください。 基本的な具象サーバクラスが4つあります: class socketserver. TCPServer ( server_address , RequestHandlerClass , bind_and_activate = True ) クライアントとサーバの間で連続したデータストリームを提供する、インターネットの TCP プロ...び出そうとします。 ほかの引数は基底クラス BaseServer に渡されます。 class socketserver. UDPServer ( server_address , RequestHandlerClass , bind_and_activate = True ) データグラムを使います。 データグラムは個々に独立した情報のパケットで、順序が入れ替わっ...失われたりすることがあります。 引数は TCPServer と同じです。 class socketserver. UnixStreamServer ( server_address , RequestHandlerClass , bind_and_activate = True ) class socketserver. UnixDatagramServer ( server_address , RequestHandlerClass , bind_an... - https://man.mtool.work/python/3.14/library/socketserver.html
- 監査イベント表 9312
- 監査イベント表 この表は、 CPython ランタイムと標準ライブラリ全体で sys.audit() または PySys_Audit() の呼び出しによって送出されるすべてのイベントを含んでいます。これらの呼び出しは、 3.8 以降に追加されました ( PEP 578 を参照) 。 これらのイベン
...size [1] ctypes.create_unicode_buffer init , size [1] ctypes.dlopen name [1] ctypes.dlsym library , name [1] ctypes.dlsym/handle handle , name [1] ctypes.get_errno [1] ctypes.get_last_error [1] ctypes.memoryview_at address , size , readonly [1] ctypes...ue , version [1] marshal.load [1] marshal.loads bytes [1] mmap.__new__ fileno , length , access , offset [1] msvcrt.get_osfhandle fd [1] msvcrt.locking fd , mode , nbytes [1] msvcrt.open_osfhandle handle , flags [1] object.__delattr__ obj , name [1] ob...lf , address [1] socket.sendto self , address [1] socket.sethostname name [1] sqlite3.connect database [1] sqlite3.connect/handle connection_handle [1] sqlite3.enable_load_extension connection , enabled [1] sqlite3.load_extension connection , path [1]... - https://man.mtool.work/python/3.14/library/audit_events.html
- ctypes --- Python 用の外部関数ライブラリ 9055
- ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために
...ライブラリで、 cdecl 呼び出し規約を使用します。 >>> from ctypes import * >>> print ( windll . kernel32 ) <WinDLL 'kernel32', handle ... at ...> >>> print ( cdll . msvcrt ) <CDLL 'msvcrt', handle ... at ...> >>> libc = cdll . msvcrt >>> Windows では通常の...ブラリをロードしてください。 例えば、Linux では次のようにします。 >>> cdll . LoadLibrary ( "libc.so.6" ) <CDLL 'libc.so.6', handle ... at ...> >>> libc = CDLL ( "libc.so.6" ) >>> libc <CDLL 'libc.so.6', handle ... at ...> >>> macOS では次のようにします。...>>> cdll . LoadLibrary ( "libc.dylib" ) <CDLL 'libc.dylib', handle ... at ...> >>> libc = CDLL ( "libc.dylib" ) >>> libc <CDLL 'libc.dylib', handle ... at ...> ロードしたdllから関数にアクセ... - https://man.mtool.work/python/3.14/library/ctypes.html
- http.server --- HTTP サーバー 8104
- http.server --- HTTP サーバー ソースコード: Lib/http/server.py このモジュールは HTTP サーバを実装するためのクラスを提供しています。 警告 http.server は本番環境での利用には推奨しません。 基本的なセキュリティチェック だけを実装しています。 利
...トをハンドラに渡します。 サーバを作成して動作させるためのコードは以下のようになります: def run ( server_class = HTTPServer , handler_class = BaseHTTPRequestHandler ): server_address = ( '' , 8000 ) httpd = server_class ( server_address , handler_class )...httpd . serve_forever () class http.server. HTTPServer ( server_address , RequestHandlerClass ) このクラスは TCPServer クラスを基にしており、サーバーのアドレスを server_name と server_port というインスタンス変数...t server_address から取得した HTTP サーバーのポート番号。 class http.server. ThreadingHTTPServer ( server_address , RequestHandlerClass ) このクラスは HTTPServer と同じですが、 ThreadingMixIn を使い、スレッドでリクエストを処理します。 ウェブブラウザーが... - https://man.mtool.work/python/3.14/library/http.server.html
- msvcrt --- MS VC++ ランタイムの有用なルーチン群 7938
- msvcrt --- MS VC++ ランタイムの有用なルーチン群 These functions provide access to some useful capabilities on Windows platforms. Some higher-level modules use these functions to build the Windows implementations of their services. For examp
...テキストモードに設定するには、 flags を os.O_TEXT にします; バイナリモードにするには os.O_BINARY にします。 msvcrt. open_osfhandle ( handle , flags ) ファイルハンドル handle から C ランタイムのファイル記述子を作成します。 flags 引数には os.O_APPEND 、 o...を作成できます。 ファイル記述子はデフォルトで継承可能です。 継承不可にするには os.O_NOINHERIT フラグを渡してください。 引数 handle , flags を指定して 監査イベント msvcrt.open_osfhandle を送出します。 msvcrt. get_osfhandle ( fd ) ファイル記述子 fd のファ...イルハンドルを返します。 fd を認識できない場合は OSError を送出します。 引数 fd を指定して 監査イベント msvcrt.get_osfhandle を送出します。 コンソール I/O 関連 msvcrt. kbhit ( ) 読み取り待ちのキー入力があればゼロ以外の値を返し、それ以外は 0 を返し... - https://man.mtool.work/python/3.14/library/msvcrt.html
- subprocess --- サブプロセス管理 7938
- subprocess --- サブプロセス管理 ソースコード: Lib/subprocess.py subprocess モジュールでは、新しいプロセスを生成し、その標準入力、標準出力、標準エラー出力のパイプに接続して、終了コードを取得できます。 このモジュールは、次のような古いモジュー
...りません。 stdin , stdout and stderr specify the executed program's standard input, standard output and standard error file handles, respectively. Valid values are None , PIPE , DEVNULL , an existing file descriptor (a positive integer), and an existing..., stderr can be STDOUT , which indicates that the stderr data from the child process should be captured into the same file handle as for stdout . encoding または errors を指定するか、 text ( universal_newlines とも呼びます) が真なら、ファイルオブジェク...りました。 stdin , stdout and stderr specify the executed program's standard input, standard output and standard error file handles, respectively. Valid values are None , PIPE , DEVNULL , an existing file descriptor (a positive integer), and an existing... - https://man.mtool.work/python/3.14/library/subprocess.html
- イベントループ 7772
- イベントループ ソースコード: Lib/asyncio/events.py , Lib/asyncio/base_events.py まえがき イベントループは全ての asyncio アプリケーションの中核をなす存在です。イベントループは非同期タスクやコールバックを実行し、ネットワーク I/O を処理し、サブ
...のリファレンスです。 コールバックハンドル 節は loop.call_soon() や loop.call_later() などのスケジューリングメソッドが返す Handle や TimerHandle インスタンスについて解説しています。 サーバーオブジェクト 節は loop.create_server() のようなメソッドが返す型...の次のイテレーションで callback に指定したコールバック ( callback ) を args 引数で呼び出すようにスケジュールします。 asyncio.Handle のインスタンスを返します。このインスタンスを使ってスケジュールしたコールバックをキャンセルすることができます。 コールバック...にコールバック関数 callback を呼び出すようにスケジュールします。 delay には整数または浮動小数点数を指定します。 asyncio.TimerHandle のインスタンスを返します。このインスタンスを使ってスケジュールしたコールバックをキャンセルすることができます。 callback は... - https://man.mtool.work/python/3.14/library/asyncio-eventloop.html
- xmlrpc.client --- XML-RPC クライアントアクセス 7772
- xmlrpc.client --- XML-RPC クライアントアクセス ソースコード: Lib/xmlrpc/client.py XML-RPCはXMLを利用した遠隔手続き呼び出し(Remote Procedure Call)の一種で、HTTP(S)をトランスポートとして使用します。XML- RPCでは、クライアントはリモートサーバ(U
...xmlrpc.server import SimpleXMLRPCServer import xmlrpc.client def python_logo (): with open ( "python_logo.jpg" , "rb" ) as handle : return xmlrpc . client . Binary ( handle . read ()) server = SimpleXMLRPCServer (( "localhost" , 8000 )) print ( "Listen...lient proxy = xmlrpc . client . ServerProxy ( "http://localhost:8000/" ) with open ( "fetched_python_logo.jpg" , "wb" ) as handle : handle . write ( proxy . python_logo () . data ) Fault オブジェクト class xmlrpc.client. Fault Fault オブジェクトは、XML... - https://man.mtool.work/python/3.14/library/xmlrpc.client.html
- Logging クックブック 7682
- Logging クックブック Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に有用であるとされていた、logging に関連するいくつものレシピを含んでいます。チュートリアルやリファレンス情報へのリンクについては その他のリソース
...ion' ) logger . setLevel ( logging . DEBUG ) # デバッグメッセージも記録するファイルハンドラーを作成する fh = logging . FileHandler ( 'spam.log' ) fh . setLevel ( logging . DEBUG ) # より高いログレベルのコンソールハンドラーを作成する ch = logging . Stre...amHandler () ch . setLevel ( logging . ERROR ) # フォーマッターを作成してハンドラーに設定する formatter = logging . Formatter ( ' %...%(message)s ' ) fh . setFormatter ( formatter ) ch . setFormatter ( formatter ) # ロガーにハンドラーを追加する logger . addHandler ( fh ) logger . addHandler ( ch ) logger . info ( 'creating an instance of auxiliary_module.Auxiliary' ) a = auxiliary_mo... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html