@@ -1716,6 +1716,11 @@ msgid ""
17161716"Python application, porting the MacPython IDE, possibly using Python as a "
17171717"standard OSA scripting language and much more.\" "
17181718msgstr ""
1719+ "最重要的变化是能够将 Python 作为框架来进行构建,这可以通过在编译 Python 时向配置脚本提供 :option:`!--enable-"
1720+ "framework` 选项来启用。 根据 Jack Jansen 的说法,“这会将一个独立的 Python 安装版加上 OS X 框架‘粘合起来’放到 "
1721+ ":file:`/Library/Frameworks/Python.framework` 中(或者其他选定的位置)。 "
1722+ "就目前而言这样做并没有什么直接的额外好处(实际上,这样做还存在必须更改 PATH 才能找到Python 的坏处),但它是创建完整的 Python "
1723+ "应用程序、移植 MacPython IDE、并可能使用 Python 作为标准 OSA 脚本语言及其他更多功能的基础。”"
17191724
17201725#: ../../whatsnew/2.2.rst:1153
17211726msgid ""
@@ -1724,13 +1729,17 @@ msgid ""
17241729" been left commented out in :file:`setup.py`. People who want to experiment"
17251730" with these modules can uncomment them manually."
17261731msgstr ""
1732+ "作为 MacOS API 如 windowing, QuickTime, scripting 等的接口的许多 MacPython 工具箱模块已被移植到 "
1733+ "OS X,但它们在 :file:`setup.py` 中被注释掉了。 希望尝试这些模块的人可以手动取消注释它们。"
17271734
17281735#: ../../whatsnew/2.2.rst:1176
17291736msgid ""
17301737"Keyword arguments passed to built-in functions that don't take them now "
17311738"cause a :exc:`TypeError` exception to be raised, with the message "
17321739"\" *function* takes no keyword arguments\" ."
17331740msgstr ""
1741+ "现在将关键字参数传给不接受它们的内置函数会导致引发 :exc:`TypeError` 异常,并附带消息 \" *function* takes no "
1742+ "keyword arguments\" 。"
17341743
17351744#: ../../whatsnew/2.2.rst:1180
17361745msgid ""
@@ -1739,6 +1748,8 @@ msgid ""
17391748"The :exc:`ReferenceError` exception has therefore moved from the "
17401749":mod:`weakref` module to become a built-in exception."
17411750msgstr ""
1751+ "在 Python 2.1 中作为扩展模块加入的弱引用现在已成为核心组成部分,因为它们被用于新式类的实现。 为此 "
1752+ ":exc:`ReferenceError` 异常也已从 :mod:`weakref` 模块移出成为一个内置异常。"
17421753
17431754#: ../../whatsnew/2.2.rst:1185
17441755msgid ""
@@ -1814,6 +1825,11 @@ msgid ""
18141825" fourth argument to the :c:func:`!PyRange_New` function, ``repeat``, has "
18151826"also been deprecated."
18161827msgstr ""
1828+ "由 :func:`!xrange` 函数所返回的对象的某些特性现在已被弃用,当它们被访问时将会触发警告;它们将在 Python 2.3 中被去除。 "
1829+ ":class:`!xrange` 对象曾试图伪装成完全的序列类型,支持切片、序列乘法以及 :keyword:`in` "
1830+ "运算符等,但这些特性很少被使用因而存在许多缺陷。 :meth:`!tolist` 方法以及 :attr:`!start`, :attr:`!stop` "
1831+ "和 :attr:`!step` 属性也已被弃用。 在 C 层级上,传给 :c:func:`!PyRange_New` 函数的第四个参数 "
1832+ "``repeat`` 也已被弃用。"
18171833
18181834#: ../../whatsnew/2.2.rst:1224
18191835msgid ""
0 commit comments