@@ -1188,23 +1188,28 @@ msgid ""
11881188"resp. Error handling is done in the same way as defined for the stream "
11891189"readers and writers."
11901190msgstr ""
1191+ "创建一个 :class:`StreamReaderWriter` 实例。 *stream* 必须为一个文件类对象。 *Reader* 和 "
1192+ "*Writer* 必须为分别提供了 :class:`StreamReader` 和 :class:`StreamWriter` 接口的工厂函数或类。 "
1193+ "错误处理通过与流式读取器和写入器所定义的相同方式来完成。"
11911194
11921195#: ../../library/codecs.rst:820
11931196msgid ""
11941197":class:`StreamReaderWriter` instances define the combined interfaces of "
11951198":class:`StreamReader` and :class:`StreamWriter` classes. They inherit all "
11961199"other methods and attributes from the underlying stream."
11971200msgstr ""
1201+ ":class:`StreamReaderWriter` 实例定义了 :class:`StreamReader` 和 "
1202+ ":class:`StreamWriter` 类的组合接口。 它们还继承了来自下层流的所有其他方法和属性。"
11981203
11991204#: ../../library/codecs.rst:828
12001205msgid "StreamRecoder Objects"
1201- msgstr ""
1206+ msgstr "StreamRecoder 对象 "
12021207
12031208#: ../../library/codecs.rst:830
12041209msgid ""
12051210"The :class:`StreamRecoder` translates data from one encoding to another, "
12061211"which is sometimes useful when dealing with different encoding environments."
1207- msgstr ""
1212+ msgstr ":class:`StreamRecoder` 将数据从一种编码格式转换为另一种,这对于处理不同编码环境的情况有时会很有用。 "
12081213
12091214#: ../../library/codecs.rst:839
12101215msgid ""
@@ -1213,16 +1218,19 @@ msgid ""
12131218" code calling :meth:`read` and :meth:`write`, while *Reader* and *Writer* "
12141219"work on the backend — the data in *stream*."
12151220msgstr ""
1221+ "创建一个实现了双向转换的 :class:`StreamRecoder` 实例: *encode* 和 *decode* 工作于前端 — "
1222+ "对代码可见的数据调用 :meth:`read` 和 :meth:`write`,而 *Reader* 和 *Writer* 工作于后端 — "
1223+ "*stream* 中的数据。"
12161224
12171225#: ../../library/codecs.rst:844
12181226msgid ""
12191227"You can use these objects to do transparent transcodings from e.g. Latin-1 "
12201228"to UTF-8 and back."
1221- msgstr ""
1229+ msgstr "你可以使用这些对象来进行透明转码,例如从 Latin-1 转为 UTF-8 以及反向转换。 "
12221230
12231231#: ../../library/codecs.rst:847
12241232msgid "The *stream* argument must be a file-like object."
1225- msgstr ""
1233+ msgstr "*stream* 参数必须为一个文件类对象。 "
12261234
12271235#: ../../library/codecs.rst:849
12281236msgid ""
@@ -1231,23 +1239,27 @@ msgid ""
12311239"providing objects of the :class:`StreamReader` and :class:`StreamWriter` "
12321240"interface respectively."
12331241msgstr ""
1242+ "*encode* 和 *decode* 参数必须遵循 :class:`Codec` 接口。 *Reader* 和 *Writer* 必须为分别提供了 "
1243+ ":class:`StreamReader` 和 :class:`StreamWriter` 接口对象的工厂函数或类。"
12341244
12351245#: ../../library/codecs.rst:854
12361246msgid ""
12371247"Error handling is done in the same way as defined for the stream readers and"
12381248" writers."
1239- msgstr ""
1249+ msgstr "错误处理通过与流式读取器和写入器所定义的相同方式来完成。 "
12401250
12411251#: ../../library/codecs.rst:858
12421252msgid ""
12431253":class:`StreamRecoder` instances define the combined interfaces of "
12441254":class:`StreamReader` and :class:`StreamWriter` classes. They inherit all "
12451255"other methods and attributes from the underlying stream."
12461256msgstr ""
1257+ ":class:`StreamRecoder` 实例定义了 :class:`StreamReader` 和 :class:`StreamWriter` "
1258+ "类的组合接口。 它们还继承了来自下层流的所有其他方法和属性。"
12471259
12481260#: ../../library/codecs.rst:866
12491261msgid "Encodings and Unicode"
1250- msgstr ""
1262+ msgstr "编码格式与 Unicode "
12511263
12521264#: ../../library/codecs.rst:868
12531265msgid ""
0 commit comments