@@ -2583,16 +2583,20 @@ msgid ""
2583
2583
"If *sub* is empty, returns the number of empty strings between characters "
2584
2584
"which is the length of the string plus one."
2585
2585
msgstr ""
2586
+ "*sub* が空の場合は、文字と文字の間にある空文字列の数、すなわち文字列の長さに1"
2587
+ "を加えたものを返します。"
2586
2588
2587
2589
#: ../../library/stdtypes.rst:1588
2588
2590
msgid "Return the string encoded to :class:`bytes`."
2589
- msgstr ""
2591
+ msgstr ":class:`bytes` にエンコードされた文字列を返します。 "
2590
2592
2591
2593
#: ../../library/stdtypes.rst:1590 ../../library/stdtypes.rst:2723
2592
2594
msgid ""
2593
2595
"*encoding* defaults to ``'utf-8'``; see :ref:`standard-encodings` for "
2594
2596
"possible values."
2595
2597
msgstr ""
2598
+ "*encoding* のデフォルト値は ``'utf-8'`` です; 指定可能な値については :ref:"
2599
+ "`standard-encodings` を参照してください。"
2596
2600
2597
2601
#: ../../library/stdtypes.rst:1593
2598
2602
msgid ""
@@ -2602,13 +2606,21 @@ msgid ""
2602
2606
"``'backslashreplace'`` and any other name registered via :func:`codecs."
2603
2607
"register_error`. See :ref:`error-handlers` for details."
2604
2608
msgstr ""
2609
+ "*errors* はエンコーディングエラーをどのように取り扱うかを制御します。 "
2610
+ "``'strict'`` (デフォルト) では :exc:`UnicodeError` 例外が送出されます。そのほ"
2611
+ "かに指定可能な値は ``'ignore'``, ``'replace'``, ``'xmlcharrefreplace'``, "
2612
+ "``'backslashreplace'`` と、そして :func:`codecs.register_error` で登録された"
2613
+ "名前です。詳しくは :ref:`error-handlers` を参照してください。"
2605
2614
2606
2615
#: ../../library/stdtypes.rst:1600
2607
2616
msgid ""
2608
2617
"For performance reasons, the value of *errors* is not checked for validity "
2609
2618
"unless an encoding error actually occurs, :ref:`devmode` is enabled or a :"
2610
2619
"ref:`debug build <debug-build>` is used."
2611
2620
msgstr ""
2621
+ "パフォーマンス上の理由から、 *errors* の値の妥当性は、エンコーディングエラー"
2622
+ "が実際に発生するか、 :ref:`devmode` が有効になっているか、もしくは :ref:`デ"
2623
+ "バッグビルド <debug-build>` が使われていない限りチェックされません。"
2612
2624
2613
2625
#: ../../library/stdtypes.rst:1605 ../../library/stdtypes.rst:2742
2614
2626
msgid "Added support for keyword arguments."
@@ -2619,6 +2631,8 @@ msgid ""
2619
2631
"The value of the *errors* argument is now checked in :ref:`devmode` and in :"
2620
2632
"ref:`debug mode <debug-build>`."
2621
2633
msgstr ""
2634
+ "*errors* 引数の値は :ref:`devmode` と :ref:`デバッグモード <debug-build>` で"
2635
+ "チェックされるようになりました。"
2622
2636
2623
2637
#: ../../library/stdtypes.rst:1615
2624
2638
msgid ""
0 commit comments