@@ -1716,6 +1716,11 @@ msgid ""
1716
1716
"Python application, porting the MacPython IDE, possibly using Python as a "
1717
1717
"standard OSA scripting language and much more.\" "
1718
1718
msgstr ""
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 脚本语言及其他更多功能的基础。”"
1719
1724
1720
1725
#: ../../whatsnew/2.2.rst:1153
1721
1726
msgid ""
@@ -1724,13 +1729,17 @@ msgid ""
1724
1729
" been left commented out in :file:`setup.py`. People who want to experiment"
1725
1730
" with these modules can uncomment them manually."
1726
1731
msgstr ""
1732
+ "作为 MacOS API 如 windowing, QuickTime, scripting 等的接口的许多 MacPython 工具箱模块已被移植到 "
1733
+ "OS X,但它们在 :file:`setup.py` 中被注释掉了。 希望尝试这些模块的人可以手动取消注释它们。"
1727
1734
1728
1735
#: ../../whatsnew/2.2.rst:1176
1729
1736
msgid ""
1730
1737
"Keyword arguments passed to built-in functions that don't take them now "
1731
1738
"cause a :exc:`TypeError` exception to be raised, with the message "
1732
1739
"\" *function* takes no keyword arguments\" ."
1733
1740
msgstr ""
1741
+ "现在将关键字参数传给不接受它们的内置函数会导致引发 :exc:`TypeError` 异常,并附带消息 \" *function* takes no "
1742
+ "keyword arguments\" 。"
1734
1743
1735
1744
#: ../../whatsnew/2.2.rst:1180
1736
1745
msgid ""
@@ -1739,6 +1748,8 @@ msgid ""
1739
1748
"The :exc:`ReferenceError` exception has therefore moved from the "
1740
1749
":mod:`weakref` module to become a built-in exception."
1741
1750
msgstr ""
1751
+ "在 Python 2.1 中作为扩展模块加入的弱引用现在已成为核心组成部分,因为它们被用于新式类的实现。 为此 "
1752
+ ":exc:`ReferenceError` 异常也已从 :mod:`weakref` 模块移出成为一个内置异常。"
1742
1753
1743
1754
#: ../../whatsnew/2.2.rst:1185
1744
1755
msgid ""
@@ -1814,6 +1825,11 @@ msgid ""
1814
1825
" fourth argument to the :c:func:`!PyRange_New` function, ``repeat``, has "
1815
1826
"also been deprecated."
1816
1827
msgstr ""
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`` 也已被弃用。"
1817
1833
1818
1834
#: ../../whatsnew/2.2.rst:1224
1819
1835
msgid ""
0 commit comments