per page, with , order by , clip by
Results of 1 - 10 of about 11 for fallback (0.006 sec.)
configparser --- 設定ファイルのパーサー 12500
configparser --- 設定ファイルのパーサー ソースコード: Lib/configparser.py このモジュールは、 Microsoft Windows の INI ファイルに似た構造を持ったベーシックな設定用言語を実装した ConfigParser クラスを提供します。このクラスを使ってユーザーが簡 ... のために維持されている独自の、より複雑なインターフェースがあることです。 このメソッドを使う場合、代替値はキーワード専用引数 fallback で指定できます: >>> config . get ( 'forge.example' , 'monster' , ... fallback = 'No such things as monsters' ) 'No such th ... ings as monsters' 同様の fallback 引数を、 getint() 、 getfloat() と getboolean() メソッドでも使えます。例えば: >>> 'BatchMode' in topsecret False >>> topse ... cret . getboolean ( 'BatchMode' , fallback = True ) True >>> config [ 'DEFAULT' ][ 'BatchMode' ] = 'no' >>> topsecret . getboolean ( 'BatchMode' , fallback = True ) ...
https://man.mtool.work/python/3.14/library/configparser.html
numbers --- 数の抽象基底クラス 12216
numbers --- 数の抽象基底クラス ソースコード: Lib/numbers.py numbers モジュール ( PEP 3141 ) は、下位になるほど多くの演算を定義する、数値の 抽象基底クラス の階層を定義しています。 このモジュールで定義する型は、どれもインスタンス化を目的とした ... のメソッドを生成するヘルパー関数を定義すると便利です。 例えば fractions.Fraction では、次のようにしています。 def _operator_fallbacks ( monomorphic_operator , fallback_operator ): def forward ( a , b ): if isinstance ( b , ( int , Fraction )): return mono ... morphic_operator ( a , b ) elif isinstance ( b , float ): return fallback_operator ( float ( a ), b ) elif isinstance ( b , complex ): return fallback_operator ( complex ( a ), b ) else : return N ... otImplemented forward . __name__ = '__' + fallback_operator . __name__ + '__' forward . __doc__ = monomorphic_operator . __doc__ def reverse ( b , a ): if isinstance ( a , R ...
https://man.mtool.work/python/3.14/library/numbers.html
gettext --- 多言語国際化サービス 9886
gettext --- 多言語国際化サービス ソースコード: Lib/gettext.py gettext モジュールは、Python のモジュールやアプリケーションに国際化 (I18N) と地域化 (L10N) の機能を提供します。 GNU gettext のメッセージカタログ API と、Python ファイルにはより適 ... ストまたは環境変数での順序で返します。 gettext. translation ( domain , localedir = None , languages = None , class_ = None , fallback = False ) domain 、 localedir 、 languages に基づいて *Translations インスタンスを返します。 これらの引数を最初に find() に ... こうすることで、実際のインスタンスデータはキャッシュのものと共有されたままになります。 .mo ファイルが見つからなかった場合、 fallback が偽 (デフォルト値) ならこの関数は OSError を送出し、 fallback が真なら NullTranslations インスタンスが返されます。 バージ ... ted)" インスタンス変数 _info および _charset を初期化します。これらの変数の値は派生クラスで設定することができます。同様に _fallback も初期化しますが、この値は add_fallback() で設定されます。その後、 fp が None でない場合 self._parse(fp) を呼び出します。 ...
https://man.mtool.work/python/3.14/library/gettext.html
unicodedata --- Unicode データベース 8499
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. ... 例えば次のようになります。 >>> unicodedata . name ( '½' ) 'VULGAR FRACTION ONE HALF' >>> unicodedata . name ( ' \uFFFF ' , 'fallback' ) 'fallback' unicodedata. decimal ( chr , default = None , / ) 文字 chr に割り当てられた十進数字の値を整数で返します。 値 ...
https://man.mtool.work/python/3.14/library/unicodedata.html
イベントループ 8232
イベントループ ソースコード: Lib/asyncio/events.py , Lib/asyncio/base_events.py まえがき イベントループは全ての asyncio アプリケーションの中核をなす存在です。イベントループは非同期タスクやコールバックを実行し、ネットワーク I/O を処理し、サブ ... eout パラメータが追加されました。 ファイルの転送 async loop. sendfile ( transport , file , offset = 0 , count = None , * , fallback = True ) transport を通じて file を送信します。送信したデータの総バイト数を返します。 このメソッドは、もし利用可能であれば ... ドがエラーを送出した場合でも更新されます。この場合実際に送信されたバイト数は file.tell() メソッドで取得することができます。 fallback を True に指定することで、 asyncio がプラットフォームが sendfile システムコールをサポートしていない場合 (たとえば Windows ... 方法でファイルの読み込みと送信を行うようにすることができます。 システムが sendfile システムコールをサポートしておらず、かつ fallback が False の場合、 SendfileNotAvailableError 例外を送出します。 Added in version 3.7. TLS へのアップグレード async loop. st ...
https://man.mtool.work/python/3.14/library/asyncio-eventloop.html
email.utils: 各種ユーティリティ 8232
email.utils : 各種ユーティリティ ソースコード: Lib/email/utils.py email.utils モジュールには、いくつかの便利なユーティリティがあります: email.utils. localtime ( dt = None ) Return local time as an aware datetime object. If called without ar ... string is encoded using the empty string for language . email.utils. collapse_rfc2231_value ( value , errors = 'replace' , fallback_charset = 'us-ascii' ) When a header parameter is encoded in RFC 2231 format, Message.get_param() may return a 3-tuple con ... a string. Optional errors is passed to the errors argument of str 's encode() method; it defaults to 'replace' . Optional fallback_charset specifies the character set to use if the one in the RFC 2231 header is not known by Python; it defaults to 'us-as ...
https://man.mtool.work/python/3.14/library/email.utils.html
shutil --- 高水準のファイル操作 8090
shutil --- 高水準のファイル操作 ソースコード: Lib/shutil.py shutil モジュールは、ファイルやファイルの集合に対するさまざまな高水準の操作を提供します。 特に、ファイルのコピーや削除を行う関数が用意されています。 個々のファイルを操作する場合は ... myarchive.tar structure/content/ structure/content/please_add.txt 出力ターミナルのサイズの取得 shutil. get_terminal_size ( fallback = (columns, lines) ) ターミナルウィンドウのサイズを取得します。 幅と高さについて、それぞれ COLUMNS と LINES という環境変数 ... わせます。 システムが対応していない場合やターミナルに接続していないなどの理由でターミナルサイズの問い合わせに失敗した場合、 fallback 引数に与えられた値を利用します。 fallback のデフォルト値は (80, 24) で、これは多くのターミナルエミュレーターが利用している ... Other Environment Variables . Added in version 3.3. バージョン 3.11 で変更: os.get_terminal_size() がゼロを返した場合にも fallback の値を使うようになりました。 他のマニュアルの関連ページ PHP streamwrapper.stream-metadata PHP eio_chown() PHP mysqli.setup ...
https://man.mtool.work/python/3.14/library/shutil.html
リモートデバッグのアタッチプロトコル 7948
リモートデバッグのアタッチプロトコル このプロトコルを使うと、外部ツールから実行中の CPython プロセスにアタッチし、Python コードをリモートで実行できます。 別の Python プロセスへのアタッチには、プラットフォームによって追加の権限や設定が必要な ... e Python executable in memory binary_path , base_address = find_mapped_binary ( pid , name_contains = "python" ) # Step 2: Fallback to shared library if executable is not found if binary_path is None : binary_path , base_address = find_mapped_binary ( pi ... ython executable in memory binary_path , base_address = find_mapped_binary ( handle , name_contains = "python" ) # Step 3: Fallback to libpython if the executable is not found if binary_path is None : binary_path , base_address = find_mapped_binary ( han ... e Python executable in memory binary_path , base_address = find_loaded_module ( pid , name_contains = "python" ) # Step 2: Fallback to shared pythonXY.dll if the executable is not # found if binary_path is None : binary_path , base_address = find_loaded_ ...
https://man.mtool.work/python/3.14/howto/remote_debugging.html
変更履歴 7681
変更履歴 次の Python バージョン リリース日: XXXX-XX-XX セキュリティ gh-160499 : Fix unbounded memory growth in asyncio TLS connections when a peer stops reading but keeps sending records that make OpenSSL generate its own replies (such as T ... crash in warnings.warn() when skip_file_prefixes is an empty tuple subclass. Propagate allocation errors when creating the fallback filename. gh-159431 : Fix an assertion failure, or an immortal object becoming mortal, on the free threaded build when an ... r failed or its backup file already existed, for example at a DST change. gh-159739 : Fix allocation error handling in the fallback implementation of getaddrinfo() . gh-159739 : Fix a double free if remote unwinder initialization runs out of memory. gh-1 ... suming a non-BMP character when looking up a two-character mapping. gh-159739 : Fix off-by-one output buffer checks in the fallback implementation of getnameinfo() . gh-159706 : Fix the pure-Python zoneinfo.ZoneInfo setting fold=0 in fromutc() for times ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
はじめに 7272
はじめに Python のアプリケーションプログラマー向けインターフェース (API) は、C と C++ のプログラマーに、Python インタープリタへのさまざまなレベルのアクセスを提供します。 C++ からも同様に使えますが、簡潔に Python/C API と呼びます。 Python/C ... で見つかったとすると、ライブラリが /usr/local/lib/python X.Y にあるものと仮定します。 (実際には、このパスは "フォールバック (fallback)" のライブラリ位置でもあり、 python が PATH 上に無い場合に使われます。) ユーザは PYTHONHOME を設定することでこの動作をオー ...
https://man.mtool.work/python/3.14/c-api/intro.html
PREV 1 2 NEXT