Results of 1 - 10 of about 12 for require (0.011 sec.)
- urllib.request --- URL を開くための拡張可能なライブラリ 13566
- urllib.request --- URL を開くための拡張可能なライブラリ ソースコード: Lib/urllib/request.py urllib.request モジュールは、Basic 認証や Digest 認証、リダイレクト、Cookie などが絡む複雑な状況で URL (主に HTTP) を開くための関数とクラスを定義して
...に変換されます。 バージョン 3.14 で変更: add_scheme パラメータが追加されました。 urllib.request. url2pathname ( url , * , require_scheme = False , resolve_host = False ) 指定された file: URL をローカルパスに変換します。 この関数は unquote() を使って UR...L をデコードします。 require_scheme が偽 (デフォルト) の場合、渡す値から file: スキームの接頭辞を省いてください。 require_scheme を真に設定した場合は、...を使う例です。 >>> from urllib.request import url2pathname >>> url = 'file:///C:/Program %20F iles' >>> url2pathname ( url , require_scheme = True ) 'C:\\Program Files' バージョン 3.14 で変更: Windows のドライブ文字を大文字に変換しなくなりました。 また、W... - https://man.mtool.work/python/3.14/library/urllib.request.html
- What's New in Python 2.4 10948
- What's New in Python 2.4 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリースされた Python 2.4.1 の新機能について解説します。 Python 2.4 は、真ん中サイズ、のリリースです。急進的だった Python 2.2 ほどには多くの変更をしていませんが、保
...decorated' >>> もう少しだけ現実的な例として、続く例ではデコレータに、与えられた引数が整数かどうかチェックさせてみます: def require_int ( func ): def wrapper ( arg ): assert isinstance ( arg , int ) return func ( arg ) return wrapper @require_int def p1...( arg ): print arg @require_int def p2 ( arg ): print arg * 2 PEP 318 にある例はこのアイディアのもっと凝った版が含まれていて、それは要求型の指定と戻り...package uses a new incremental parser for MIME messages, available in the email.FeedParser module. The new parser doesn't require reading the entire message into memory, and doesn't raise exceptions if a message is malformed; instead it records any pro... - https://man.mtool.work/python/3.14/whatsnew/2.4.html
- unicodedata --- Unicode データベース 10294
- unicodedata --- Unicode データベース This module provides access to the Unicode Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the UCD version 16.
...t that has the same methods as the entire module, but uses the Unicode database version 3.2 instead, for applications that require this specific version of the Unicode database (such as IDNA). 脚注 [ 1 ] https://www.unicode.org/Public/16.0.0/ucd/NameAli... - https://man.mtool.work/python/3.14/library/unicodedata.html
- インタープリタの初期化と終了処理 8348
- インタープリタの初期化と終了処理 初期化前にインタープリタを設定する方法の詳細は、 Python の初期化設定 を参照してください。 Python の初期化前 Python を組み込むアプリケーションでは、一部の関数と グローバルな設定変数 を除き、ほかの Python/C AP
...y compiles Python/frozenmain.c into the frozen program instead, together with the Windows-specific hooks that the function requires. int Py_RunMain ( void ) 設定が完了した CPython ランタイムで、メインモジュールを実行します。 コマンドラインまたは設定で指...ectations at thread state attachment time that would've allowed for graceful exit from this situation. Changing that would require new stable C APIs and rewriting the majority of C code in the CPython ecosystem to use those with error handling. プロセス...15 で削除予定: Use PyConfig_Get("home") or the PYTHONHOME environment variable instead. 他のマニュアルの関連ページ PHP com.requirements PHP apcu.installation Linux JM xzgrep(1) Django 2.0 Django api-stability PHP var.setup... - https://man.mtool.work/python/3.14/c-api/interp-lifecycle.html
- デスクリプタ ガイド 8348
- デスクリプタ ガイド Author : Raymond Hettinger Contact : <python at rcn dot com> デスクリプタ を使うと、オブジェクトの属性の検索、保存、削除をカスタマイズできます。 本ガイドは4つの大項目から構成されています。 最初の「入門」では基本の紹介をし
...h __slots__ (as measured with Python 3.10 on an Apple M1 processor). 5. Blocks tools like @functools.cached_property which require an instance dictionary to function correctly: from functools import cached_property class CP : __slots__ = () # インスタン... - https://man.mtool.work/python/3.14/howto/descriptor.html
- 4. Windows で Python を使う 8348
- 4. Windows で Python を使う このドキュメントは、 Python を Microsoft Windows で使うときに知っておくべき、 Windows 固有の動作についての概要を伝えることを目的としています。 多くの Unix システムやサービスと異なり、Windows にはシステムでサポート
...py commands do not seem to be working, see the Troubleshooting section below. There are sometimes additional manual steps required to configure your PC. Python インストールマネージャを使う以外に、Python を NuGet パッケージとして入手することもできます。...えます。 インデックスの署名をダウンロードして検証するのは、ローカル設定の source_settings 節にインデックスの URL が含まれ、 requires_signature が true の場合、またはインデックスの JSON で requires_signature が true に設定されている場合だけです。 ローカル...定にこの設定があれば、値が false の場合でも、インデックス内の設定は無視します。 As well as requiring a valid signature, the required_root_subject and required_publisher_subject settings can further restrict acceptable signatures based on the certificate... - https://man.mtool.work/python/3.14/using/windows.html
- 1. Extending Python with C or C++ 7694
- 1. Extending Python with C or C++ It is quite easy to add new built-in modules to Python, if you know how to program in C. Such extension modules can do two things that can't be done directly in Python: they can implement new built-in objec
...le() in the Python API checks the argument types and converts them to C values. It uses a template string to determine the required types of the arguments as well as the types of the C variables into which to store the converted values. More about this...e ); } Note that PyMODINIT_FUNC declares the function as PyObject * return type, declares any special linkage declarations required by the platform, and for C++ declares the function as extern "C" . PyInit_spam() is called when each interpreter imports...program_name , argv [ 0 ]); if ( PyStatus_Exception ( status )) { goto exception ; } /* Initialize the Python interpreter. Required. If this step fails, it will be a fatal error. */ status = Py_InitializeFromConfig ( & config ); if ( PyStatus_Exception... - https://man.mtool.work/python/3.14/extending/extending.html
- ctypes --- Python 用の外部関数ライブラリ 7694
- ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために
...in <module> TypeError : this function takes at least 4 arguments (3 given) Functions using the stdcall calling convention require exactly as many arguments as there are items in argtypes . Functions using the cdecl calling convention accept additional... - https://man.mtool.work/python/3.14/library/ctypes.html
- optparse --- コマンドラインオプションのパーサー 7694
- optparse --- コマンドラインオプションのパーサー ソースコード: Lib/optparse.py 引数解析ライブラリの選択 標準ライブラリには、引数を解析するライブラリが三つあります。 getopt : C の手続き型の getopt API に忠実に対応するモジュールです。 optparse
...すなわち他のオプションとその引数が解析されて引数リストから除去された後に引数リストに置かれているものです。 必須のオプション (required option) コマンドラインで必ず指定しなければならないオプションです。 英語で "required option" (必須のオプション) という表現...value: '4x' 値を全く指定しない場合には、以下のようになります: $ /usr/bin/foo -n Usage: foo [options] foo: error: -n option requires an argument optparse が生成するエラーメッセージには、エラーに関係するオプションが常に示されます。 アプリケーションのコード...クション actions that result in optparse storing a value to an attribute of the current OptionValues instance; these options require a dest attribute to be supplied to the Option constructor. "typed" アクション コマンドラインから引数を受け取り、それがある... - https://man.mtool.work/python/3.14/library/optparse.html
- typing --- 型ヒントのサポート 7694
- typing --- 型ヒントのサポート Added in version 3.5. ソースコード: Lib/typing.py 注釈 Python ランタイムは、関数や変数の型アノテーションを強制しません。型アノテーションは、 type checkers や IDE、linterなどのサードパーティーツールで使われます。
...。 Added in version 3.8. バージョン 3.13 で変更: Final を ClassVar の内側に入れることも、その逆も可能になりました。 typing. Required TypedDict のキーが必須であることを示すための特殊な型構築子です。 主に total=False の TypedDict で役立ちます。 詳細は Type...dDict と PEP 655 を参照してください。 Added in version 3.11. typing. NotRequired TypedDict のキーが存在しない場合もあることを示すための特殊な型構築子です。 より詳しくは、 TypedDict と PEP 655 を参照して...g of keyword parameters to their values in a given call, and should be only be used to annotate **kwargs . Both attributes require the annotated parameter to be in scope. At runtime, P.args and P.kwargs are instances respectively of ParamSpecArgs and Pa... - https://man.mtool.work/python/3.14/library/typing.html