@@ -1559,6 +1559,11 @@ msgid ""
1559
1559
"Python application, porting the MacPython IDE, possibly using Python as a "
1560
1560
"standard OSA scripting language and much more.\" "
1561
1561
msgstr ""
1562
+ "最重要的变化是能够将 Python 作为框架来进行构建,这可以通过在编译 Python 时向配置脚本提供 :option:`!--enable-"
1563
+ "framework` 选项来启用。 根据 Jack Jansen 的说法,“这会将一个独立的 Python 安装版加上 OS X 框架‘粘合起来’放到 "
1564
+ ":file:`/Library/Frameworks/Python.framework` 中(或者其他选定的位置)。 "
1565
+ "就目前而言这样做并没有什么直接的额外好处(实际上,这样做还存在必须更改 PATH 才能找到Python 的坏处),但它是创建完整的 Python "
1566
+ "应用程序、移植 MacPython IDE、并可能使用 Python 作为标准 OSA 脚本语言及其他更多功能的基础。”"
1562
1567
1563
1568
#: ../../whatsnew/2.2.rst:1153
1564
1569
msgid ""
@@ -1567,13 +1572,17 @@ msgid ""
1567
1572
" been left commented out in :file:`setup.py`. People who want to experiment"
1568
1573
" with these modules can uncomment them manually."
1569
1574
msgstr ""
1575
+ "作为 MacOS API 如 windowing, QuickTime, scripting 等的接口的许多 MacPython 工具箱模块已被移植到 "
1576
+ "OS X,但它们在 :file:`setup.py` 中被注释掉了。 希望尝试这些模块的人可以手动取消注释它们。"
1570
1577
1571
1578
#: ../../whatsnew/2.2.rst:1176
1572
1579
msgid ""
1573
1580
"Keyword arguments passed to built-in functions that don't take them now "
1574
1581
"cause a :exc:`TypeError` exception to be raised, with the message "
1575
1582
"\" *function* takes no keyword arguments\" ."
1576
1583
msgstr ""
1584
+ "现在将关键字参数传给不接受它们的内置函数会导致引发 :exc:`TypeError` 异常,并附带消息 \" *function* takes no "
1585
+ "keyword arguments\" 。"
1577
1586
1578
1587
#: ../../whatsnew/2.2.rst:1180
1579
1588
msgid ""
@@ -1582,6 +1591,8 @@ msgid ""
1582
1591
"The :exc:`ReferenceError` exception has therefore moved from the "
1583
1592
":mod:`weakref` module to become a built-in exception."
1584
1593
msgstr ""
1594
+ "在 Python 2.1 中作为扩展模块加入的弱引用现在已成为核心组成部分,因为它们被用于新式类的实现。 为此 "
1595
+ ":exc:`ReferenceError` 异常也已从 :mod:`weakref` 模块移出成为一个内置异常。"
1585
1596
1586
1597
#: ../../whatsnew/2.2.rst:1185
1587
1598
msgid ""
@@ -1699,6 +1710,9 @@ msgid ""
1699
1710
"such scripts, in case they're also usable as modules. (Implemented by David"
1700
1711
" Bolen.)"
1701
1712
msgstr ""
1713
+ "在 Windows 上现在将会导入以 ``.pyw`` 结尾的文件。 ``.pyw`` 是 Windows 专属的,用来指明一个脚本需要使用 "
1714
+ "PYTHONW.EXE 而不是 PYTHON.EXE 来运行以避免弹出 DOS 控制台来显示输出。 "
1715
+ "该补丁使得导入这样的脚本成为可能,让它们也可以作为模块来使用。 (由 David Bolen 实现。)"
1702
1716
1703
1717
#: ../../whatsnew/2.2.rst:1245
1704
1718
msgid ""
0 commit comments