File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 92.58 %" , "updated_at" : " 2024-05-30T02:20:20Z " }
1
+ {"translation" : " 92.59 %" , "updated_at" : " 2024-05-30T03:09:41Z " }
Original file line number Diff line number Diff line change @@ -380,6 +380,8 @@ msgid ""
380
380
":pep:`207`, or to 2.1's C API documentation, for the full list of related "
381
381
"functions."
382
382
msgstr ""
383
+ "对于 C 程序员来说,也有相应的变更;类型对象中有一个新的槽位 ``tp_richcmp`` 以及一个用于执行指定富比较的 API。 这里我不会涉及 C"
384
+ " API 的具体内容,完整的相关函数列表请参阅 :pep:`207` 或 2.1 的 C API 文档。"
383
385
384
386
#: ../../whatsnew/2.1.rst:223
385
387
msgid ":pep:`207` - Rich Comparisons"
@@ -407,6 +409,10 @@ msgid ""
407
409
" following Python version can then drop the feature, and users will have had"
408
410
" a full release cycle to remove uses of the old feature."
409
411
msgstr ""
412
+ "在过去的 10 年中,Python 积累了一定数量的过时模块和功能。 "
413
+ "由于无法确切知道某个功能被使用的程度:可能没有程序依赖该功能,也可能有很多程序依赖,因此很难确定何时可以安全地移除某个功能,为了以更结构化的方式移除旧功能,添加了一个警告框架。"
414
+ " 当 Python 开发者想要废弃某个功能时,它会在下一个 Python 版本中首先触发一个警告。 "
415
+ "然后,在随后的Python版本中可以移除该功能,这样用户将有一个完整的发布周期来删除对旧功能的使用。"
410
416
411
417
#: ../../whatsnew/2.1.rst:242
412
418
msgid ""
@@ -416,6 +422,8 @@ msgid ""
416
422
" can also use this framework to deprecate old features that they no longer "
417
423
"wish to support."
418
424
msgstr ""
425
+ "Python 2.1 增加了警告框架以用于此方案。 它增加了一个 :mod:`warnings` "
426
+ "模块,该模块提供了发出警告的函数,以及过滤掉不想显示的警告的功能。 第三方模块也可以使用这个框架来弃用它们不再希望支持的旧功能。"
419
427
420
428
#: ../../whatsnew/2.1.rst:248
421
429
msgid ""
You can’t perform that action at this time.
0 commit comments