per page, with , order by , clip by
Results of 1 - 3 of about 3 for plural (0.007 sec.)
gettext --- 多言語国際化サービス 11886
gettext --- 多言語国際化サービス ソースコード: Lib/gettext.py gettext モジュールは、Python のモジュールやアプリケーションに国際化 (I18N) と地域化 (L10N) の機能を提供します。 GNU gettext のメッセージカタログ API と、Python ファイルにはより適 ... domain , message , / ) gettext() と同様ですが、指定された domain からメッセージを探します。 gettext. ngettext ( singular , plural , n , / ) gettext() と同様ですが、複数形を考慮します。 翻訳が見つかった場合は、複数形の選択公式を n に適用し、その結果に対 ... を返します (言語によっては複数形が 3 種類以上あります)。 翻訳が見つからなかった場合は、 n が 1 なら singular 、それ以外なら plural を返します。 複数形の選択公式はカタログのヘッダから取得されます。 選択公式は自由変数 n を持つ C または Python の式です; そ ... 様々な言語における選択公式については GNU gettext ドキュメント を参照してください。 gettext. dngettext ( domain , singular , plural , n , / ) ngettext() と同様ですが、指定された domain からメッセージを探します。 gettext. pgettext ( context , message , / ...
https://man.mtool.work/python/3.14/library/gettext.html
Logging クックブック 8408
Logging クックブック Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に有用であるとされていた、logging に関連するいくつものレシピを含んでいます。チュートリアルやリファレンス情報へのリンクについては その他のリソース ... import logging logger = logging . getLogger ( __name__ ) def command ( options ): n = len ( options . names ) if n == 1 : plural = '' services = ' \' %s \' ' % options . names [ 0 ] else : plural = 's' services = ', ' . join ( ' \' %s \' ' % name for ... to stop %s ' , services ) # ここで実際のコマンド処理を行う ... logger . info ( 'Stopped the %s service %s .' , services , plural ) 同様に、再起動のコマンドは次の通りです: # restart.py import logging logger = logging . getLogger ( __name__ ) def comman ... d ( options ): n = len ( options . names ) if n == 1 : plural = '' services = ' \' %s \' ' % options . names [ 0 ] else : plural = 's' services = ', ' . join ( ' \' %s \' ' % name for ...
https://man.mtool.work/python/3.14/howto/logging-cookbook.html
変更履歴 7589
変更履歴 次の 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 ... RecursionError などが該当します。 以前は例外を伝播したり、REPL 内部のトレースバックを表示したりしていました。 gh-157451 : Plural-Forms 式が !n + 1 や 2 * !n のように単項演算子 ! と二項演算子を組み合わせた場合の、 gettext の複数形の選択を修正しました。 ...
https://man.mtool.work/python/3.14/whatsnew/changelog.html
PREV 1 NEXT