@@ -830,6 +830,9 @@ msgid ""
830830"converts option names to lower case), the values ``foo %(bar)s`` and ``foo "
831831"%(BAR)s`` are equivalent."
832832msgstr ""
833+ "插值中使用的所有选项名称将像任何其他选项名称引用一样通过 :meth:`optionxform` 方法来传递。 例如,使用 "
834+ ":meth:`optionxform` 的默认实现(它会将选项名称转换为小写形式)时,值 ``foo %(bar)s`` 和 ``foo "
835+ "%(BAR)s`` 是等价的。"
833836
834837#: ../../library/configparser.rst:915
835838msgid ""
@@ -839,37 +842,43 @@ msgid ""
839842"converter gets its own corresponding :meth:`get*()` method on the parser "
840843"object and section proxies."
841844msgstr ""
845+ "当给定 *converters* 时,它应当为一个字典,其中每个键代表一个类型转换器的名称而每个值则为实现从字符串到目标数据类型的转换的可调用对象。 "
846+ "每个转换器会获得其在解析器对象和节代理上对应的 :meth:`get*()` 方法。"
842847
843848#: ../../library/configparser.rst:921
844849msgid "The default *dict_type* is :class:`collections.OrderedDict`."
845- msgstr ""
850+ msgstr "默认的 *dict_type* 为 :class:`collections.OrderedDict`。 "
846851
847852#: ../../library/configparser.rst:924
848853msgid ""
849854"*allow_no_value*, *delimiters*, *comment_prefixes*, *strict*, "
850855"*empty_lines_in_values*, *default_section* and *interpolation* were added."
851856msgstr ""
857+ "添加了 *allow_no_value*, *delimiters*, *comment_prefixes*, *strict*, "
858+ "*empty_lines_in_values*, *default_section* 以及 *interpolation*。"
852859
853860#: ../../library/configparser.rst:929
854861msgid "The *converters* argument was added."
855- msgstr ""
862+ msgstr "添加了 *converters* 参数。 "
856863
857864#: ../../library/configparser.rst:932
858865msgid ""
859866"The *defaults* argument is read with :meth:`read_dict()`, providing "
860867"consistent behavior across the parser: non-string keys and values are "
861868"implicitly converted to strings."
862869msgstr ""
870+ "*defaults* 参数会通过 :meth:`read_dict()` "
871+ "来读取,提供全解析器范围内一致的行为:非字符串类型的键和值会被隐式地转换为字符串。"
863872
864873#: ../../library/configparser.rst:939
865874msgid "Return a dictionary containing the instance-wide defaults."
866- msgstr ""
875+ msgstr "返回包含实例范围内默认值的字典。 "
867876
868877#: ../../library/configparser.rst:944
869878msgid ""
870879"Return a list of the sections available; the *default section* is not "
871880"included in the list."
872- msgstr ""
881+ msgstr "返回可用节的列表;*default section* 不包括在该列表中。 "
873882
874883#: ../../library/configparser.rst:950
875884msgid ""
@@ -878,6 +887,9 @@ msgid ""
878887"*default section* name is passed, :exc:`ValueError` is raised. The name of "
879888"the section must be a string; if not, :exc:`TypeError` is raised."
880889msgstr ""
890+ "向实例添加一个名为 *section* 的节。 如果给定名称的节已存在,将会引发 :exc:`DuplicateSectionError`。 如果转入了"
891+ " *default section* 名称,则会引发 :exc:`ValueError`。 节名称必须为字符串;如果不是则会引发 "
892+ ":exc:`TypeError`。"
881893
882894#: ../../library/configparser.rst:955
883895msgid "Non-string section names raise :exc:`TypeError`."
0 commit comments