@@ -729,11 +729,11 @@ msgstr ""
729729msgid ""
730730"The decoder must be able to handle zero length input and return an empty "
731731"object of the output object type in this situation."
732- msgstr ""
732+ msgstr "解码器必须能够处理零长度的输入并在此情况下返回输出对象类型的空对象。 "
733733
734734#: ../../library/codecs.rst:507
735735msgid "Incremental Encoding and Decoding"
736- msgstr ""
736+ msgstr "增量式的编码和解码 "
737737
738738#: ../../library/codecs.rst:509
739739msgid ""
@@ -745,6 +745,10 @@ msgid ""
745745" of the incremental encoder/decoder. The incremental encoder/decoder keeps "
746746"track of the encoding/decoding process during method calls."
747747msgstr ""
748+ ":class:`IncrementalEncoder` 和 :class:`IncrementalDecoder` 类提供了增量式编码和解码的基本接口。"
749+ " 对输入的编码/解码不是通过对无状态编码器/解码器的一次调用,而是通过对增量式编码器/解码器的 "
750+ ":meth:`~IncrementalEncoder.encode`/:meth:`~IncrementalDecoder.decode` "
751+ "方法的多次调用。 增量式编码器/解码器会在方法调用期间跟踪编码/解码过程。"
748752
749753#: ../../library/codecs.rst:517
750754msgid ""
@@ -753,10 +757,12 @@ msgid ""
753757" is the same as if all the single inputs were joined into one, and this "
754758"input was encoded/decoded with the stateless encoder/decoder."
755759msgstr ""
760+ "调用 :meth:`~IncrementalEncoder.encode`/:meth:`~IncrementalDecoder.decode` "
761+ "方法后的全部输出相当于将所有通过无状态编码器/解码器进行编码/解码的单个输入连接在一起所得到的输出。"
756762
757763#: ../../library/codecs.rst:526
758764msgid "IncrementalEncoder Objects"
759- msgstr ""
765+ msgstr "IncrementalEncoder 对象 "
760766
761767#: ../../library/codecs.rst:528
762768msgid ""
@@ -765,24 +771,28 @@ msgid ""
765771"encoder must define in order to be compatible with the Python codec "
766772"registry."
767773msgstr ""
774+ ":class:`IncrementalEncoder` 类用来对一个输入进行分步编码。 它定义了以下方法,每个增量式编码器都必须定义这些方法以便与 "
775+ "Python 编解码器注册表相兼容。"
768776
769777#: ../../library/codecs.rst:535
770778msgid "Constructor for an :class:`IncrementalEncoder` instance."
771- msgstr ""
779+ msgstr ":class:`IncrementalEncoder` 实例的构造器。 "
772780
773781#: ../../library/codecs.rst:537
774782msgid ""
775783"All incremental encoders must provide this constructor interface. They are "
776784"free to add additional keyword arguments, but only the ones defined here are"
777785" used by the Python codec registry."
778- msgstr ""
786+ msgstr "增量式编码器必须提供此构造器接口。 它们可以自由地添加额外的关键字参数,但只有在这里定义的参数才会被 Python 编解码器注册表所使用。 "
779787
780788#: ../../library/codecs.rst:541
781789msgid ""
782790"The :class:`IncrementalEncoder` may implement different error handling "
783791"schemes by providing the *errors* keyword argument. See :ref:`error-"
784792"handlers` for possible values."
785793msgstr ""
794+ ":class:`IncrementalEncoder` 可以通过提供 *errors* 关键字参数来实现不同的错误处理方案。 可用的值请参阅 :ref"
795+ ":`error-handlers`。"
786796
787797#: ../../library/codecs.rst:545
788798msgid ""
@@ -791,6 +801,8 @@ msgid ""
791801"error handling strategies during the lifetime of the "
792802":class:`IncrementalEncoder` object."
793803msgstr ""
804+ "*errors* 参数必须被赋值给一个同名的属性。 通过对此属性赋值就可以在 :class:`IncrementalEncoder` "
805+ "对象的生命期内在不同的错误处理策略之间进行切换。"
794806
795807#: ../../library/codecs.rst:553
796808msgid ""
0 commit comments