per page, with , order by , clip by
Results of 1 - 10 of about 17 for query (0.008 sec.)
urllib.parse --- URL を構成要素に解析する 14863
urllib.parse --- URL を構成要素に解析する ソースコード: Lib/urllib/parse.py このモジュールでは URL (Uniform Resource Locator) 文字列をその構成要素 (アドレススキーム、ネットワーク上の位置、パスその他) に分解したり、構成要素を URL に組みなおし ... tem named tuple SplitResult or SplitResultBytes . This corresponds to the general structure of a URL: scheme://netloc/path?query#fragment . Each tuple item is a string, possibly empty. The delimiters as shown above are not part of the result, except f ... ドされたシーケンスはデコードされません。 例えば: >>> from urllib.parse import urlsplit >>> urlsplit ( "scheme://netloc/path?query#fragment" ) SplitResult(scheme='scheme', netloc='netloc', path='/path', query='query', fragment='fragment') >>> o = urlspl ... t=params#url-parsing" ) >>> o SplitResult(scheme='http', netloc='docs.python.org:80', path='/3/library/urllib.parse.html', query='highlight=params', fragment='url-parsing') >>> o . scheme 'http' >>> o . netloc 'docs.python.org:80' >>> o . hostname 'do ...
https://man.mtool.work/python/3.14/library/urllib.parse.html
What's New In Python 3.11 10276
What's New In Python 3.11 編集者 : Pablo Galindo Salgado この記事では Python 3.10 と比較した Python 3.11 の新機能を解説します。Python 3.11 は2022年10月24日にリリースされました。全詳細については 変更履歴 をご覧ください。 概要 -- リリースハイ ... くネストされた dict オブジェクトや複数の関数呼び出しを処理するときにも役立ちます: Traceback ( most recent call last ): File "query.py" , line 37 , in < module > magic_arithmetic ( 'foo' ) File "query.py" , line 18 , in magic_arithmetic return add_counts ... ( x ) / 25 ^^^^^^^^^^^^^ File "query.py" , line 24 , in add_counts return 25 + query_user ( user1 ) + query_user ( user2 ) ^^^^^^^^^^^^^^^^^ File "query.py" , ... line 32 , in query_user return 1 + query_count ( db , response [ 'a' ][ 'b' ][ 'c' ][ 'user' ], retry = True ) ~~~~~~~~~~~~~~~~~~^^^^^ TypeEr ...
https://man.mtool.work/python/3.14/whatsnew/3.11.html
importlib.metadata -- パッケージメタデータへのアクセス 9362
importlib.metadata -- パッケージメタデータへのアクセス Added in version 3.8. バージョン 3.10 で変更: importlib.metadata は暫定的なものではなくなりました。 ソースコード: Lib/importlib/metadata/__init__.py importlib.metadata は、インストール済 ... 数はすべて select() メソッドに渡され、個々のエントリポイント定義の属性と比較されます。 Note: it is not currently possible to query for entry points based on their EntryPoint.dist attribute (as different Distribution instances do not currently compare eq ... s DatabaseImporter ( DistributionFinder ): ... def find_distributions ( self , context = DistributionFinder . Context ()): query = dict ( name = context . name ) if context . name else {} for dist_record in self . db . query_distributions ( query ): y ... ield DatabaseDistribution ( dist_record ) このようにすると、 query_distributions は、クエリに一致するデータベース内の各配布物のレコードを返すことになります。 例えば、データベースに requests ...
https://man.mtool.work/python/3.14/library/importlib.metadata.html
What's New in Python 2.7 8707
What's New in Python 2.7 著者 : A.M. Kuchling (amk at amk.ca) この文書は Python 2.7 の新機能について解説します。Python 2.7 は 2010 年 7 月 3 日にリリースされました。 数値周りの扱いが、浮動小数点数でも Decimal クラスでもいろいろな点で改良され ... 例えば Python 2.6.4 や 2.5 では次のようになります。 >>> import urlparse >>> urlparse . urlsplit ( 'invented://host/filename?query' ) ('invented', '', '//host/filename?query', '', '') Python 2.7 (や Python 2.6.5) は以下を返します: >>> import urlparse >> ... > urlparse . urlsplit ( 'invented://host/filename?query' ) ('invented', 'host', '/filename?query', '', '') (Python 2.7 では、これは普通のタプルではなく名前付きタプルを返すので、実 ... http://[1080::8:800:200C:417A]/foo' ) ParseResult(scheme='http', netloc='[1080::8:800:200C:417A]', path='/foo', params='', query='', fragment='') 新しいクラス: weakref モジュールの WeakSet クラスは、その要素の弱参照だけを保持する集合です。要素は、それ ...
https://man.mtool.work/python/3.14/whatsnew/2.7.html
What's New In Python 3.1 8707
What's New In Python 3.1 著者 : Raymond Hettinger この記事では Python 3.0 と比較した Python 3.1 の新機能を説明します。 Python 3.1 は 2009 年 6 月 27 日にリリースされました。 PEP 372: 順序付き辞書 通常の Python 辞書は、 key/value ペアを不定の ... が何か外部ソースに基いて作られる場合に有用です。例えば CSV のヘッダ、SQL のフィールドリスト、あるいはユーザ入力などです: >>> query = input () SELECT region, dept, count(*) FROM main GROUPBY region, dept >>> cursor . execute ( query ) >>> query_fields = ... [ desc [ 0 ] for desc in cursor . description ] >>> UserQuery = namedtuple ( 'UserQuery' , query_fields , rename = True ) >>> pprint . pprint ([ UserQuery ( * row ) for row in cursor ] ... ) [UserQuery(region='South', dept='Shipping', _2=185), UserQuery(region='North', dept='Accounting', _2=37), UserQuery(region='West', de ...
https://man.mtool.work/python/3.14/whatsnew/3.1.html
typing --- 型ヒントのサポート 8448
typing --- 型ヒントのサポート Added in version 3.5. ソースコード: Lib/typing.py 注釈 Python ランタイムは、関数や変数の型アノテーションを強制しません。型アノテーションは、 type checkers や IDE、linterなどのサードパーティーツールで使われます。 ... llections.abc import Callable , Awaitable def feeder ( get_next_item : Callable [[], str ]) -> None : ... # Body def async_query ( on_success : Callable [[ int ], None ], on_error : Callable [[ int , Exception ], None ]) -> None : ... # Body async def ... import Iterable type Response [ S ] = Iterable [ S ] | int # ここの戻り値の型は Iterable[str] | int と同じ def response ( query : str ) -> Response [ str ]: ... type Vec [ T ] = Iterable [ tuple [ T , T ]] def inproduct [ T : ( int , float , complex ... ありません。 LiteralString 型のオブジェクトを組み合わせて作った文字列も、 LiteralString として受け入れられます。 例: def run_query ( sql : LiteralString ) -> None : ... def caller ( arbitrary_string : str , literal_string : LiteralString ) -> None : run ...
https://man.mtool.work/python/3.14/library/typing.html
fcntl --- fcntl および ioctl システムコール 8328
fcntl --- fcntl および ioctl システムコール このモジュールはファイル記述子に対するファイル制御と I/O 制御を行います。 Unix の fcntl() と ioctl() ルーチンへのインターフェイスです。 詳細は Unix のマニュアルページ fcntl(2) と ioctl(2) を参照し ... SIGPIPE と F_SETNOSIGPIPE が追加されました。 バージョン 3.14 で変更: On Linux >= 6.1, the fcntl module exposes the F_DUPFD_QUERY to query a file descriptor pointing to the same file. このモジュールには、以下の関数が定義されています: fcntl. fcntl ( fd ...
https://man.mtool.work/python/3.14/library/fcntl.html
winreg --- Windows レジストリへのアクセス 8328
winreg --- Windows レジストリへのアクセス これらの関数は Windows レジストリ API を Python から使えるようにします。プログラマがレジストリハンドルを明示的にクローズするのを忘れた場合でも、確実にハンドルがクローズされるようにするために、レジス ... 送出します。 バージョン 3.2 で変更: 名前付き引数が使用できるようになりました。 バージョン 3.3 で変更: 上記 を参照。 winreg. QueryInfoKey ( key ) キーに関する情報をタプルとして返します。 key はすでに開かれたキーか、既定の HKEY_* 定数 のうちの一つです。 ... れば) いつだったかを表す整数で、1601 年 1 月 1 日からの 100 ナノ秒単位で数えたもの。 引数 key を指定して 監査イベント winreg.QueryInfoKey を送出します。 winreg. QueryValue ( key , sub_key ) キーに対する、名前付けられていない値を文字列で取得します。 key ... ーのデータ中で、名前 NULL をもつ最初の値を取得します。しかし背後のAPI 呼び出しは型情報を返しません。なので、可能ならいつでも QueryValueEx() を使うべきです。 引数 key , sub_key , value_name を指定して 監査イベント winreg.QueryValue を送出します。 winreg. ...
https://man.mtool.work/python/3.14/library/winreg.html
ストリーム 8052
ストリーム ソースコード: Lib/asyncio/streams.py ストリームはネットワークコネクションと合わせて動作する高水準の async/await 可能な基本要素です。ストリームはコールバックや低水準のプロトコルやトランスポートを使うことなくデータを送受信することを ... ion ( url . hostname , 443 , ssl = True ) else : reader , writer = await asyncio . open_connection ( url . hostname , 80 ) query = ( f "HEAD { url . path or '/' } HTTP/1.0 \r\n " f "Host: { url . hostname } \r\n " f " \r\n " ) writer . write ( query . ...
https://man.mtool.work/python/3.14/library/asyncio-stream.html
wsgiref --- WSGI ユーティリティとリファレンス実装 8052
wsgiref --- WSGI ユーティリティとリファレンス実装 ソースコード: Lib/wsgiref 警告 wsgiref はリファレンス実装であり、本番環境での使用は推奨されません。 このモジュールは基本的なセキュリティ検査だけを実装しています。 Web Server Gateway Interfac ... うな値が見つかった場合には "https" を返し、そうでなければ "http" を返します。 wsgiref.util. request_uri ( environ , include_query = True ) リクエスト URI 全体 (オプションでクエリ文字列を含む) を、 PEP 3333 の "URL 再構築(URL Reconstruction)" にあるアル ... ゴリズムを使って返します。 include_query が false の場合、クエリ文字列は結果となる文字列には含まれません。 wsgiref.util. application_uri ( environ ) PATH_INFO と Q ...
https://man.mtool.work/python/3.14/library/wsgiref.html
PREV 1 2 NEXT