@@ -1063,28 +1063,38 @@ msgid ""
1063
1063
" The :mod:`profile` module is on the list for 3.1. The :mod:`!StringIO` "
1064
1064
"module has been turned into a class in the :mod:`io` module."
1065
1065
msgstr ""
1066
+ "在 Python 2.x 中的常见模式是某个模块有一个以纯 Python 实现的版本,并有一个作为 C "
1067
+ "扩展实现的加速版本;例如,:mod:`pickle` 和 :mod:`!cPickle`。 这造成每个此类模块的用户存在导入加速版本并在必要时回退到纯 "
1068
+ "Python 版本的负担。 在 Python 3.0 中,加速版本将被视为纯 Python 版本的实现细节。 "
1069
+ "用户应当总是导入标准版本,该版本会尝试导入加速版本并在必要时回退到纯 Python 版本。 :mod:`pickle` / "
1070
+ ":mod:`!cPickle` 对就获得了这样的处置。 :mod:`profile` 模块被加入了 3.1 版的处置计划。 "
1071
+ ":mod:`!StringIO` 模块已被转为 :mod:`io` 模块中的一个类。"
1066
1072
1067
1073
#: ../../whatsnew/3.0.rst:602
1068
1074
msgid ""
1069
1075
"Some related modules have been grouped into packages, and usually the "
1070
1076
"submodule names have been simplified. The resulting new packages are:"
1071
- msgstr ""
1077
+ msgstr "一些有关联的模块已被组织为包,通常其子模块名也得到了简化。 这样产生的新包有: "
1072
1078
1073
1079
#: ../../whatsnew/3.0.rst:606
1074
1080
msgid ""
1075
1081
":mod:`dbm` (:mod:`!anydbm`, :mod:`!dbhash`, :mod:`!dbm`, :mod:`!dumbdbm`, "
1076
1082
":mod:`!gdbm`, :mod:`!whichdb`)."
1077
1083
msgstr ""
1084
+ ":mod:`dbm` (:mod:`!anydbm`, :mod:`!dbhash`, :mod:`!dbm`, :mod:`!dumbdbm`, "
1085
+ ":mod:`!gdbm`, :mod:`!whichdb`)。"
1078
1086
1079
1087
#: ../../whatsnew/3.0.rst:609
1080
1088
msgid ":mod:`html` (:mod:`!HTMLParser`, :mod:`!htmlentitydefs`)."
1081
- msgstr ""
1089
+ msgstr ":mod:`html` (:mod:`!HTMLParser`, :mod:`!htmlentitydefs`)。 "
1082
1090
1083
1091
#: ../../whatsnew/3.0.rst:611
1084
1092
msgid ""
1085
1093
":mod:`http` (:mod:`!httplib`, :mod:`!BaseHTTPServer`, :mod:`!CGIHTTPServer`,"
1086
1094
" :mod:`!SimpleHTTPServer`, :mod:`!Cookie`, :mod:`!cookielib`)."
1087
1095
msgstr ""
1096
+ ":mod:`http` (:mod:`!httplib`, :mod:`!BaseHTTPServer`, :mod:`!CGIHTTPServer`,"
1097
+ " :mod:`!SimpleHTTPServer`, :mod:`!Cookie`, :mod:`!cookielib`)。"
1088
1098
1089
1099
#: ../../whatsnew/3.0.rst:615
1090
1100
msgid ""
@@ -1093,34 +1103,43 @@ msgid ""
1093
1103
"Also note that as of Python 2.6, the functionality of :mod:`turtle` has been"
1094
1104
" greatly enhanced."
1095
1105
msgstr ""
1106
+ ":mod:`tkinter` (所有 ``Tkinter`` 相关的模块但 :mod:`turtle` 除外)。 :mod:`turtle` "
1107
+ "的目标用户通常并不真的关心 :mod:`tkinter`。 还要注意在 Python 2.6 中,:mod:`turtle` 的功能得到了大幅增强。"
1096
1108
1097
1109
#: ../../whatsnew/3.0.rst:620
1098
1110
msgid ""
1099
1111
":mod:`urllib` (:mod:`!urllib`, :mod:`!urllib2`, :mod:`!urlparse`, "
1100
1112
":mod:`!robotparse`)."
1101
1113
msgstr ""
1114
+ ":mod:`urllib` (:mod:`!urllib`, :mod:`!urllib2`, :mod:`!urlparse`, "
1115
+ ":mod:`!robotparse`)。"
1102
1116
1103
1117
#: ../../whatsnew/3.0.rst:623
1104
1118
msgid ""
1105
1119
":mod:`xmlrpc` (:mod:`!xmlrpclib`, :mod:`!DocXMLRPCServer`, "
1106
1120
":mod:`!SimpleXMLRPCServer`)."
1107
1121
msgstr ""
1122
+ ":mod:`xmlrpc` (:mod:`!xmlrpclib`, :mod:`!DocXMLRPCServer`, "
1123
+ ":mod:`!SimpleXMLRPCServer`)。"
1108
1124
1109
1125
#: ../../whatsnew/3.0.rst:626
1110
1126
msgid ""
1111
1127
"Some other changes to standard library modules, not covered by :pep:`3108`:"
1112
- msgstr ""
1128
+ msgstr "其他一些针对标准库模块的改变,未被 :pep:`3108` 覆盖: "
1113
1129
1114
1130
#: ../../whatsnew/3.0.rst:629
1115
1131
msgid "Killed :mod:`!sets`. Use the built-in :func:`set` class."
1116
- msgstr ""
1132
+ msgstr "去除了 :mod:`!sets`。 请改用内置 :func:`set` 类。 "
1117
1133
1118
1134
#: ../../whatsnew/3.0.rst:631
1119
1135
msgid ""
1120
1136
"Cleanup of the :mod:`sys` module: removed :func:`!sys.exitfunc`, "
1121
1137
":func:`!sys.exc_clear`, :data:`!sys.exc_type`, :data:`!sys.exc_value`, "
1122
1138
":data:`!sys.exc_traceback`. (Note that :data:`sys.last_type` etc. remain.)"
1123
1139
msgstr ""
1140
+ "清理了 :mod:`sys` 模块:移除 :func:`!sys.exitfunc`, :func:`!sys.exc_clear`, "
1141
+ ":data:`!sys.exc_type`, :data:`!sys.exc_value`, :data:`!sys.exc_traceback`。 "
1142
+ "(请注意 :data:`sys.last_type` 等仍然保留。)"
1124
1143
1125
1144
#: ../../whatsnew/3.0.rst:636
1126
1145
msgid ""
@@ -1129,24 +1148,30 @@ msgid ""
1129
1148
":meth:`~array.array.tofile` instead. Also, the ``'c'`` typecode for array "
1130
1149
"is gone -- use either ``'b'`` for bytes or ``'u'`` for Unicode characters."
1131
1150
msgstr ""
1151
+ "清理了 :class:`array.array` 类型:去除 :meth:`!read` 和 :meth:`!write` 方法;改用 "
1152
+ ":meth:`~array.array.fromfile` 和 :meth:`~array.array.tofile`。 此外,数组的 ``'c'`` "
1153
+ "类型代码已去除 -- 请使用 ``'b'`` 表示字节数据或使用 ``'u'`` 表示 Unicode 字符。"
1132
1154
1133
1155
#: ../../whatsnew/3.0.rst:642
1134
1156
msgid ""
1135
1157
"Cleanup of the :mod:`operator` module: removed :func:`!sequenceIncludes` and"
1136
1158
" :func:`!isCallable`."
1137
1159
msgstr ""
1160
+ "清理了 :mod:`operator` 模块:移除 :func:`!sequenceIncludes` 和 :func:`!isCallable`。"
1138
1161
1139
1162
#: ../../whatsnew/3.0.rst:645
1140
1163
msgid ""
1141
1164
"Cleanup of the :mod:`!thread` module: :func:`!acquire_lock` and "
1142
1165
":func:`!release_lock` are gone; use :meth:`~threading.Lock.acquire` and "
1143
1166
":meth:`~threading.Lock.release` instead."
1144
1167
msgstr ""
1168
+ "清理了 :mod:`!thread` 模块:去除 :func:`!acquire_lock` 和 :func:`!release_lock`;改用 "
1169
+ ":meth:`~threading.Lock.acquire` 和 :meth:`~threading.Lock.release`。"
1145
1170
1146
1171
#: ../../whatsnew/3.0.rst:649
1147
1172
msgid ""
1148
1173
"Cleanup of the :mod:`random` module: removed the :func:`!jumpahead` API."
1149
- msgstr ""
1174
+ msgstr "清理了 :mod:`random` 模块:移除 :func:`!jumpahead` API。 "
1150
1175
1151
1176
#: ../../whatsnew/3.0.rst:651
1152
1177
msgid "The :mod:`!new` module is gone."
0 commit comments