@@ -1316,57 +1316,62 @@ msgid ""
13161316"debug log now again reports elapsed collection time and the number of "
13171317"unreachable objects. Contributed by Pål Grønås Drange."
13181318msgstr ""
1319+ ":gh:`140358`: 恢复在 GC 调试输出中的已花费时间和不可访问对象计数。 这些内容在 ``gc.c`` 重构期间被无意中移除了。 "
1320+ "调试日志现在将再次报告已花费收集时间和不可访问对象数量。 由 Pål Grønås Drange 贡献。"
13191321
13201322#: ../NEWS:531
13211323msgid ""
13221324":gh:`140306`: Fix memory leaks in cross-interpreter channel operations and "
13231325"shared namespace handling."
1324- msgstr ""
1326+ msgstr ":gh:`140306`: 修复跨解释器通道操作和共享命名空间处理中的内存泄漏问题。 "
13251327
13261328#: ../NEWS:534
13271329msgid ":gh:`140301`: Fix memory leak of ``PyConfig`` in subinterpreters."
1328- msgstr ""
1330+ msgstr ":gh:`140301`: 修复子解释器中 ``PyConfig`` 的内存泄漏问题。 "
13291331
13301332#: ../NEWS:536
13311333msgid ""
13321334":gh:`140257`: Fix data race between interpreter_clear() and take_gil() on "
13331335"eval_breaker during finalization with daemon threads."
13341336msgstr ""
1337+ ":gh:`140257`: 修复守护线程最终化期间在 eval_breaker 上 interpreter_clear() 和 take_gil() "
1338+ "之间的数据竞争问题。"
13351339
13361340#: ../NEWS:539
13371341msgid ""
13381342":gh:`139951`: Fixes a regression in GC performance for a growing heap "
13391343"composed mostly of small tuples."
1340- msgstr ""
1344+ msgstr ":gh:`139951`: 修复针对主要由小元组构成的堆不断增长导致的 GC 性能回归问题。 "
13411345
13421346#: ../NEWS:542
13431347msgid ""
13441348"Counts number of actually tracked objects, instead of trackable objects. "
13451349"This ensures that untracking tuples has the desired effect of reducing GC "
13461350"overhead."
1347- msgstr ""
1351+ msgstr "实际跟踪对象,而非可跟踪对象的计数。 这将确保未跟踪的元组具有降低 GC 开销的预期效果。 "
13481352
13491353#: ../NEWS:544
13501354msgid ""
13511355"Does not track most untrackable tuples during creation. This prevents large "
13521356"numbers of small tuples causing excessive GCs."
1353- msgstr ""
1357+ msgstr "不跟踪在创建期间大部分不可跟踪的元组。 这将避免大量小元组导致过度的 GC 操作。 "
13541358
13551359#: ../NEWS:547
13561360msgid ""
13571361":gh:`140104`: Fix a bug with exception handling in the JIT. Patch by Ken "
13581362"Jin. Bug reported by Daniel Diniz."
13591363msgstr ""
1364+ ":gh:`140104`: 修复 JIT 中的一个异常处理程序缺陷。 由 Ken Jin 编写补丁。 由 Daniel Diniz 报告程序缺陷。"
13601365
13611366#: ../NEWS:550
13621367msgid ""
13631368":gh:`140061`: Fixing the checking of whether an object is uniquely "
13641369"referenced to ensure free-threaded compatibility. Patch by Sergey Miryanov."
1365- msgstr ""
1370+ msgstr ":gh:`140061`: 修正检查对象是否被唯一引用的功能以确保自由线程兼容性。 由 Sergey Miryanov 编写补丁。 "
13661371
13671372#: ../NEWS:553
13681373msgid ":gh:`140067`: Fix memory leak in sub-interpreter creation."
1369- msgstr ""
1374+ msgstr ":gh:`140067`: 修复子解释器创建中的内存泄漏问题。 "
13701375
13711376#: ../NEWS:555
13721377msgid ""
@@ -1376,39 +1381,49 @@ msgid ""
13761381":class:`typing.TypeVarTuple` and its ``__name__`` attribute. Patch by "
13771382"Mikhail Efimov."
13781383msgstr ""
1384+ ":gh:`140000`: 修复当 :class:`typing.TypeAliasType`, :class:`typing.TypeVar`, "
1385+ ":class:`typing.ParamSpec` 或 :class:`typing.TypeVarTuple` 的实例及其 ``__name__`` "
1386+ "属性之间存在引用循环时潜在的内存泄漏问题。 由 Mikhail Efimov 编写补丁。"
13791387
13801388#: ../NEWS:560
13811389msgid ""
13821390":gh:`139988`: Fix a memory leak when failing to create a "
13831391":class:`~typing.Union` type. Patch by Bénédikt Tran."
13841392msgstr ""
1393+ ":gh:`139988`: 修复当创建 :class:`~typing.Union` 类型失败时的内存泄漏问题。 由 Bénédikt Tran "
1394+ "编写补丁。"
13851395
13861396#: ../NEWS:563
13871397msgid ""
13881398":gh:`139748`: Fix reference leaks in error branches of functions accepting "
13891399"path strings or bytes such as :func:`compile` and :func:`os.system`. Patch "
13901400"by Bénédikt Tran."
13911401msgstr ""
1402+ ":gh:`139748`: 修复在接受路径字符串或字节串的函数如 :func:`compile` 和 :func:`os.system` "
1403+ "的错误分支中的引用泄漏问题。 由 Bénédikt Tran 编写补丁。"
13921404
13931405#: ../NEWS:567
13941406msgid ""
13951407":gh:`139516`: Fix lambda colon erroneously start format spec in f-string in "
13961408"tokenizer."
1397- msgstr ""
1409+ msgstr ":gh:`139516`: 修复 lambda 的冒号在 tokenizer 的 f-字符串中错误开启格式说明的问题。 "
13981410
13991411#: ../NEWS:570
14001412msgid ""
14011413":gh:`139640`: :func:`ast.parse` no longer emits syntax warnings for "
14021414"``return``/``break``/``continue`` in ``finally`` (see :pep:`765`) -- they "
14031415"are only emitted during compilation."
14041416msgstr ""
1417+ ":gh:`139640`: :func:`ast.parse` 将不再针对 ``finally`` 中的 "
1418+ "``return``/``break``/``continue`` 发出语法警告 (参见 :pep:`765`) -- 它们只会在编译期间发出。"
14051419
14061420#: ../NEWS:574
14071421msgid ""
14081422":gh:`139640`: Fix swallowing some syntax warnings in different modules if "
14091423"they accidentally have the same message and are emitted from the same line. "
14101424"Fix duplicated warnings in the ``finally`` block."
14111425msgstr ""
1426+ ":gh:`139640`: 修复在多个模块中当某些语法警告具有相同消息并从相同行发出时被漏掉的问题。 修复 ``finally`` 代码块中重复的警告。"
14121427
14131428#: ../NEWS:578
14141429msgid ""
@@ -1418,57 +1433,68 @@ msgid ""
14181433"default encoding in a traceback. Show the line containing the coding cookie "
14191434"when it conflicts with the BOM in a traceback."
14201435msgstr ""
1436+ ":gh:`63161`: 当在 Python 源文件中指定非 UTF-8 编码格式时支持非 UTF-8 shebang 和注释。 针对默认 "
1437+ "(UTF-8) 编码格式检测注释中的解码错误。 在回溯中显示针对默认编码格式的解码错误的行和位置。 在回溯中显示包含与 BOM 冲突的 coding "
1438+ "cookie 的行。"
14211439
14221440#: ../NEWS:584
14231441msgid ""
14241442":gh:`116738`: Make :mod:`mmap` thread-safe on the :term:`free threaded <free"
14251443" threading>` build."
1426- msgstr ""
1444+ msgstr ":gh:`116738`: 使 :mod:`mmap` 在 :term:`自由线程 <free threading>` 构建上线程安全。 "
14271445
14281446#: ../NEWS:587
14291447msgid ""
14301448":gh:`138558`: Fix handling of unusual t-string annotations in annotationlib."
14311449" Patch by Dave Peck."
1432- msgstr ""
1450+ msgstr ":gh:`138558`: 修正在 annotationlib 中对不常见 t-字符串标注的处理。 由 Dave Peck 编写代码。 "
14331451
14341452#: ../NEWS:590
14351453msgid ""
14361454":gh:`134466`: Don't run PyREPL in a degraded environment where setting "
14371455"termios attributes is not allowed."
1438- msgstr ""
1456+ msgstr ":gh:`134466`: 当不允许设置 termios 属性时不在降级的环境中运行 PyREPL。 "
14391457
14401458#: ../NEWS:593
14411459msgid ""
14421460":gh:`138944`: Fix :exc:`SyntaxError` message when invalid syntax appears on "
14431461"the same line as a valid ``import ... as ...`` or ``from ... import ... as "
14441462"...`` statement. Patch by Brian Schubert."
14451463msgstr ""
1464+ ":gh:`138944`: 修复当无效的语法与有效的 ``import ... as ...`` 或 ``from ... import ... as "
1465+ "...`` 语句出现在同一行时的 :exc:`SyntaxError`。 由 Brian Schubert 编写补丁。"
14461466
14471467#: ../NEWS:597
14481468msgid ""
14491469":gh:`105487`: Remove non-existent :meth:`~object.__copy__`, "
14501470":meth:`~object.__deepcopy__`, and :attr:`~type.__bases__` from the "
14511471":meth:`~object.__dir__` entries of :class:`types.GenericAlias`."
14521472msgstr ""
1473+ ":gh:`105487`: 从 :class:`types.GenericAlias` 的 :meth:`~object.__dir__` "
1474+ "条目中移除不存在的 :meth:`~object.__copy__`, :meth:`~object.__deepcopy__` 和 "
1475+ ":attr:`~type.__bases__`。"
14531476
14541477#: ../NEWS:601
14551478msgid ""
14561479":gh:`69605`: Fix some standard library submodules missing from the "
14571480":term:`REPL` auto-completion of imports."
1458- msgstr ""
1481+ msgstr ":gh:`69605`: 修复 :term:`REPL` 的导入自动补全中缺失某些标准库子模块的问题。 "
14591482
14601483#: ../NEWS:604
14611484msgid ""
14621485":gh:`116738`: Make :mod:`cProfile` thread-safe on the :term:`free threaded "
14631486"<free threading>` build."
14641487msgstr ""
1488+ ":gh:`116738`: 使 :mod:`cProfile` 在 :term:`自由线程 <free threading>` 构建上线程安全。"
14651489
14661490#: ../NEWS:607
14671491msgid ""
14681492":gh:`138004`: On Solaris/Illumos platforms, thread names are now encoded as "
14691493"ASCII to avoid errors on systems (e.g. OpenIndiana) that don't support non-"
14701494"ASCII names."
14711495msgstr ""
1496+ ":gh:`138004`: 在 Solaris/Illumos 平台上,线程名称现在将被编码为 ASCII 以避免在不支持非 ASCII 名称的系统 "
1497+ "(例如 OpenIndiana) 上出错。"
14721498
14731499#: ../NEWS:611
14741500msgid ""
0 commit comments