@@ -2157,6 +2157,10 @@ msgid ""
21572157"basic ABCs that the Python developers think will be widely useful. Future "
21582158"versions of Python will probably add more ABCs."
21592159msgstr ""
2160+ "一些面向对象的语言如 Java 支持使用接口,即声明一个类具有一组给定的方法或支持给定的访问协议。 抽象基类 (ABC) 是 Python "
2161+ "中的等价特性。 ABC 支持由一个包含名为 :class:`~abc.ABCMeta` 的元类的 :mod:`abc` 模块,由 "
2162+ ":func:`isinstance` 和 :func:`issubclass` 内置函数提供的对该元类的特殊处理,以及一系列 Python "
2163+ "开发者认为会被广泛使用的基本 ABC 组成。 未来的 Python 版本可能会添加更多的 ABC。"
21602164
21612165#: ../../whatsnew/2.6.rst:1181
21622166msgid ""
@@ -2168,6 +2172,10 @@ msgid ""
21682172" the iterative variants such as :meth:`!iterkeys`? :meth:`!copy`and "
21692173":meth:`!update`? Iterating over the object with :func:`!iter`?"
21702174msgstr ""
2175+ "让我们假设你有一个特定的类并想要知道它是否支持字典式访问。 然而,“字典式”一词的语意是模糊的。 它可能意味着能够通过 ``obj[1]`` "
2176+ "来访问条目。 它可能表示能够通过 ``obj[2] = value`` 来设置条目? 或者这种对象具有 :meth:`!keys`, "
2177+ ":meth:`!values` 和 :meth:`!items` 方法? 那么是否要有迭代形式如 :meth:`!iterkeys` 呢? "
2178+ ":meth:`!copy` 和 :meth:`!update` 呢? 通过 :func:`!iter` 来迭代对象呢?"
21712179
21722180#: ../../whatsnew/2.6.rst:1189
21732181msgid ""
@@ -2179,6 +2187,11 @@ msgid ""
21792187"setting items, and :meth:`!keys`, :meth:`!values`, and :meth:`!items`, is "
21802188"defined by the :class:`MutableMapping` ABC."
21812189msgstr ""
2190+ "Python 2.6 :mod:`collections` 模块包括了代表这些区别的多个不同的 ABC。 :class:`Iterable` "
2191+ "表明一个类定义了 :meth:`~object.__iter__`,而 :class:`Container` 意味着该类定义了 "
2192+ ":meth:`~object.__contains__` 方法因而支持 ``x in y`` 表达式。 基本的字典接口如获取条目、设置条目,以及 "
2193+ ":meth:`!keys`, :meth:`!values` 和 :meth:`!items` 等则是由 :class:`MutableMapping`"
2194+ " ABC 来定义的。"
21822195
21832196#: ../../whatsnew/2.6.rst:1198
21842197msgid ""