Results of 1 - 10 of about 48 for fallback (0.006 sec.)
- configparser --- 設定ファイルのパーサー — Python 3.14.8 ドキュメント 12571
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » configparser --- 設定ファイルのパーサー テーマ 自動 ライト ダーク | configparser --- 設定ファイルのパーサー
...れたメソッドのカスタマイズもできます。 [ 1 ] 代替値 ¶ As with a dictionary, you can use a section's get() method to provide fallback values: >>> topsecret . get ( 'Port' ) '50022' >>> topsecret . get ( 'CompressionLevel' ) '9' >>> topsecret . get ( 'Ciphe...get() method provides a custom, more complex interface, maintained for backwards compatibility. When using this method, a fallback value can be provided via the fallback keyword-only argument: >>> config . get ( 'forge.example' , 'monster' , ... fallbac...k = 'No such things as monsters' ) 'No such things as monsters' 同様の fallback 引数を、 getint() 、 getfloat() と getboolean() メソッドでも使えます。例えば: >>> 'BatchMode' in topsecret False >>> topse... - https://man.mtool.work/python/3.14/library/configparser.html
- configparser --- 設定ファイルのパーサー — Python 3.14.8 ドキュメント 12571
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » configparser --- 設定ファイルのパーサー テーマ 自動 ライト ダーク | configparser --- 設定ファイルのパーサー
...れたメソッドのカスタマイズもできます。 [ 1 ] 代替値 ¶ As with a dictionary, you can use a section's get() method to provide fallback values: >>> topsecret . get ( 'Port' ) '50022' >>> topsecret . get ( 'CompressionLevel' ) '9' >>> topsecret . get ( 'Ciphe...get() method provides a custom, more complex interface, maintained for backwards compatibility. When using this method, a fallback value can be provided via the fallback keyword-only argument: >>> config . get ( 'forge.example' , 'monster' , ... fallbac...k = 'No such things as monsters' ) 'No such things as monsters' 同様の fallback 引数を、 getint() 、 getfloat() と getboolean() メソッドでも使えます。例えば: >>> 'BatchMode' in topsecret False >>> topse... - https://man.mtool.work/python/3.14/library/configparser.html
- numbers --- 数の抽象基底クラス — Python 3.14.8 ドキュメント 11587
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » numbers --- 数の抽象基底クラス テーマ 自動 ライト ダーク | numbers --- 数の抽象基底クラス ¶ ソースコード: Li
...成する支援関数を定義することは役に立ちます。たとえば、 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
- numbers --- 数の抽象基底クラス — Python 3.14.8 ドキュメント 11587
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » numbers --- 数の抽象基底クラス テーマ 自動 ライト ダーク | numbers --- 数の抽象基底クラス ¶ ソースコード: Li
...成する支援関数を定義することは役に立ちます。たとえば、 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 --- 多言語国際化サービス — Python 3.14.8 ドキュメント 9618
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 国際化 » gettext --- 多言語国際化サービス テーマ 自動 ライト ダーク | gettext --- 多言語国際化サービス ¶ ソースコード: Lib/gettext.
...ている順番に並べられたものを返します。 gettext. translation ( domain , localedir = None , languages = None , class_ = None , fallback = False ) ¶ Return a *Translations instance based on the domain , localedir , and languages , which are first passed to fi...こうすることで、実際のインスタンスデータはキャッシュのものと共有されたままになります。 .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
- gettext --- 多言語国際化サービス — Python 3.14.8 ドキュメント 9618
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 国際化 » gettext --- 多言語国際化サービス テーマ 自動 ライト ダーク | gettext --- 多言語国際化サービス ¶ ソースコード: Lib/gettext.
...ている順番に並べられたものを返します。 gettext. translation ( domain , localedir = None , languages = None , class_ = None , fallback = False ) ¶ Return a *Translations instance based on the domain , localedir , and languages , which are first passed to fi...こうすることで、実際のインスタンスデータはキャッシュのものと共有されたままになります。 .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 データベース — Python 3.14.8 ドキュメント 7891
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » unicodedata --- Unicode データベース テーマ 自動 ライト ダーク | unicodedata --- Unicode データベース ¶ This
...r is raised. For example: >>> unicodedata . name ( '½' ) 'VULGAR FRACTION ONE HALF' >>> unicodedata . name ( ' \uFFFF ' , 'fallback' ) 'fallback' unicodedata. decimal ( chr , default = None , / ) ¶ Returns the decimal value assigned to the character chr... - https://man.mtool.work/python/3.14/library/unicodedata.html
- unicodedata --- Unicode データベース — Python 3.14.8 ドキュメント 7891
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » unicodedata --- Unicode データベース テーマ 自動 ライト ダーク | unicodedata --- Unicode データベース ¶ This
...r is raised. For example: >>> unicodedata . name ( '½' ) 'VULGAR FRACTION ONE HALF' >>> unicodedata . name ( ' \uFFFF ' , 'fallback' ) 'fallback' unicodedata. decimal ( chr , default = None , / ) ¶ Returns the decimal value assigned to the character chr... - https://man.mtool.work/python/3.14/library/unicodedata.html
- Event loop — Python 3.14.8 ドキュメント 7770
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Event loop テーマ 自動 ライト ダーク | Event loop ¶ ソースコード: Lib/a
...ut パラメータが追加されました。 ファイルの転送 ¶ 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 upgrade ¶ async loop. start_tls (... - https://man.mtool.work/python/3.14/library/asyncio-eventloop.html
- Event loop — Python 3.14.8 ドキュメント 7770
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Event loop テーマ 自動 ライト ダーク | Event loop ¶ ソースコード: Lib/a
...ut パラメータが追加されました。 ファイルの転送 ¶ 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 upgrade ¶ async loop. start_tls (... - https://man.mtool.work/python/3.14/library/asyncio-eventloop.html