Skip to content

Commit 7e03c0c

Browse files
[po] auto sync
1 parent 72e0383 commit 7e03c0c

File tree

2 files changed

+34
-14
lines changed

2 files changed

+34
-14
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "81.54%", "updated_at": "2025-04-27T14:55:33Z"}
1+
{"translation": "81.57%", "updated_at": "2025-04-28T01:20:06Z"}

whatsnew/3.0.po

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ msgstr ":meth:`!__nonzero__` 现在为 :meth:`~object.__bool__`。"
14331433

14341434
#: ../../whatsnew/3.0.rst:797
14351435
msgid "Builtins"
1436-
msgstr ""
1436+
msgstr "内置对象"
14371437

14381438
#: ../../whatsnew/3.0.rst:799
14391439
msgid ""
@@ -1443,6 +1443,8 @@ msgid ""
14431443
"automatically be chosen. With arguments, the behavior of :func:`super` is "
14441444
"unchanged."
14451445
msgstr ""
1446+
":pep:`3135`: 新的 :func:`super`。 现在你可以不带参数地唤起 :func:`super` 这样(假定这发生在定义于 "
1447+
":keyword:`class` 语句内部的常规实例方法中)将会自动选择正确的类和实例。 附带参数时,:func:`super` 的行为保持不变。"
14461448

14471449
#: ../../whatsnew/3.0.rst:805
14481450
msgid ""
@@ -1452,12 +1454,15 @@ msgid ""
14521454
"input is terminated prematurely. To get the old behavior of :func:`input`, "
14531455
"use ``eval(input())``."
14541456
msgstr ""
1457+
":pep:`3111`: :func:`!raw_input` 已改名为 :func:`input`。 也就是说,新的 :func:`input` "
1458+
"函数会从 :data:`sys.stdin` 读取一行并去除末尾换行符再将其返回。 如果输入提前终结则会引发 :exc:`EOFError`。 "
1459+
"要获取原来 :func:`input` 的行为,请使用 ``eval(input())``。"
14551460

14561461
#: ../../whatsnew/3.0.rst:811
14571462
msgid ""
14581463
"A new built-in function :func:`next` was added to call the "
14591464
":meth:`~iterator.__next__` method on an object."
1460-
msgstr ""
1465+
msgstr "新增内置函数 :func:`next` 用于在对象上调用 :meth:`~iterator.__next__` 方法。"
14611466

14621467
#: ../../whatsnew/3.0.rst:814
14631468
msgid ""
@@ -1469,56 +1474,67 @@ msgid ""
14691474
"a single argument and a value of the same type as ``x`` when called with two"
14701475
" arguments."
14711476
msgstr ""
1477+
":func:`round` 函数的舍入策略和返回类型已有改变。 对于两边差值相同的情况现在将会舍入到最接近的偶数结果而不是远离零值的结果。 "
1478+
"(例如,``round(2.5)`` 现在将返回 ``2`` 而不是 ``3``。) 现在 ``round(x[, n])`` 将委托给 "
1479+
"``x.__round__([n])`` 而不是始终返回一个浮点数。 它通常会在附带一个参数调用时返回整数而在附带两个参数调用时返回与 ``x`` "
1480+
"相同类型的值。"
14721481

14731482
#: ../../whatsnew/3.0.rst:823
14741483
msgid "Moved :func:`!intern` to :func:`sys.intern`."
1475-
msgstr ""
1484+
msgstr "将 :func:`!intern` 移至 :func:`sys.intern`。"
14761485

14771486
#: ../../whatsnew/3.0.rst:825
14781487
msgid ""
14791488
"Removed: :func:`!apply`. Instead of ``apply(f, args)`` use ``f(*args)``."
1480-
msgstr ""
1489+
msgstr "移除: :func:`!apply`。 原 ``apply(f, args)`` 请改用 ``f(*args)``。"
14811490

14821491
#: ../../whatsnew/3.0.rst:828
14831492
msgid ""
14841493
"Removed :func:`callable`. Instead of ``callable(f)`` you can use "
14851494
"``isinstance(f, collections.Callable)``. The :func:`!operator.isCallable` "
14861495
"function is also gone."
14871496
msgstr ""
1497+
"移除了 :func:`callable`。 原 ``callable(f)`` 可以改用 ``isinstance(f, "
1498+
"collections.Callable)``。 :func:`!operator.isCallable` 函数也已不复存在。"
14881499

14891500
#: ../../whatsnew/3.0.rst:832
14901501
msgid ""
14911502
"Removed :func:`!coerce`. This function no longer serves a purpose now that "
14921503
"classic classes are gone."
1493-
msgstr ""
1504+
msgstr "移除了 :func:`!coerce`。 由于经典类已不复存在此函数也不再有用处。"
14941505

14951506
#: ../../whatsnew/3.0.rst:835
14961507
msgid ""
14971508
"Removed :func:`!execfile`. Instead of ``execfile(fn)`` use "
14981509
"``exec(open(fn).read())``."
14991510
msgstr ""
1511+
"移除了 :func:`!execfile`。 原 ``execfile(fn)`` 请改用 ``exec(open(fn).read())``。"
15001512

15011513
#: ../../whatsnew/3.0.rst:838
15021514
msgid ""
15031515
"Removed the :class:`!file` type. Use :func:`open`. There are now several "
15041516
"different kinds of streams that open can return in the :mod:`io` module."
15051517
msgstr ""
1518+
"移除了 :class:`!file` 类型。 请使用 :func:`open`。 当前在 :mod:`io` 模块中有多种不同类别的流可由 open "
1519+
"函数返回。"
15061520

15071521
#: ../../whatsnew/3.0.rst:841
15081522
msgid ""
15091523
"Removed :func:`!reduce`. Use :func:`functools.reduce` if you really need "
15101524
"it; however, 99 percent of the time an explicit :keyword:`for` loop is more "
15111525
"readable."
15121526
msgstr ""
1527+
"移除了 :func:`!reduce`。 如果你确实需要它可使用 :func:`functools.reduce`;不过,在百分之 99 "
1528+
"的情况下用显式的 :keyword:`for` 循环会有更好的可读性。"
15131529

15141530
#: ../../whatsnew/3.0.rst:845
15151531
msgid "Removed :func:`!reload`. Use :func:`!imp.reload`."
1516-
msgstr ""
1532+
msgstr "移除了 :func:`!reload`。 请使用 :func:`!imp.reload`。"
15171533

15181534
#: ../../whatsnew/3.0.rst:847
15191535
msgid ""
15201536
"Removed. :meth:`!dict.has_key` -- use the :keyword:`in` operator instead."
1521-
msgstr ""
1537+
msgstr "移除了 :meth:`!dict.has_key` -- 请改用 :keyword:`in` 运算符。"
15221538

15231539
#: ../../whatsnew/3.0.rst:854
15241540
msgid "Build and C API Changes"
@@ -1528,48 +1544,52 @@ msgstr "构建和 C API 的改变"
15281544
msgid ""
15291545
"Due to time constraints, here is a *very* incomplete list of changes to the "
15301546
"C API."
1531-
msgstr ""
1547+
msgstr "由于时间约束,下面 C API 的变化列表 *非常* 不完整。"
15321548

15331549
#: ../../whatsnew/3.0.rst:859
15341550
msgid ""
15351551
"Support for several platforms was dropped, including but not limited to Mac "
15361552
"OS 9, BeOS, RISCOS, Irix, and Tru64."
1537-
msgstr ""
1553+
msgstr "已放弃对某些平台的支持,包括但不限于 Mac OS 9, BeOS, RISCOS, Irix 和 Tru64。"
15381554

15391555
#: ../../whatsnew/3.0.rst:862
15401556
msgid ":pep:`3118`: New Buffer API."
15411557
msgstr ":pep:`3118`: 新的缓冲区 API。"
15421558

15431559
#: ../../whatsnew/3.0.rst:864
15441560
msgid ":pep:`3121`: Extension Module Initialization & Finalization."
1545-
msgstr ""
1561+
msgstr ":pep:`3121`: 扩展模块初始化与最终化。"
15461562

15471563
#: ../../whatsnew/3.0.rst:866
15481564
msgid ":pep:`3123`: Making :c:macro:`PyObject_HEAD` conform to standard C."
1549-
msgstr ""
1565+
msgstr ":pep:`3123`: 使 :c:macro:`PyObject_HEAD` 与标准 C 一致。"
15501566

15511567
#: ../../whatsnew/3.0.rst:868
15521568
msgid "No more C API support for restricted execution."
1553-
msgstr ""
1569+
msgstr "已去除对受限执行的 C API 支持。"
15541570

15551571
#: ../../whatsnew/3.0.rst:870
15561572
msgid ""
15571573
":c:func:`!PyNumber_Coerce`, :c:func:`!PyNumber_CoerceEx`, "
15581574
":c:func:`!PyMember_Get`, and :c:func:`!PyMember_Set` C APIs are removed."
15591575
msgstr ""
1576+
":c:func:`!PyNumber_Coerce`, :c:func:`!PyNumber_CoerceEx`, "
1577+
":c:func:`!PyMember_Get` 和 :c:func:`!PyMember_Set` C API 已被移除。"
15601578

15611579
#: ../../whatsnew/3.0.rst:873
15621580
msgid ""
15631581
"New C API :c:func:`PyImport_ImportModuleNoBlock`, works like "
15641582
":c:func:`PyImport_ImportModule` but won't block on the import lock "
15651583
"(returning an error instead)."
15661584
msgstr ""
1585+
"新的 C API :c:func:`PyImport_ImportModuleNoBlock`,类似于 "
1586+
":c:func:`PyImport_ImportModule` 但不会因导入锁而阻塞(改为返回错误)。"
15671587

15681588
#: ../../whatsnew/3.0.rst:877
15691589
msgid ""
15701590
"Renamed the boolean conversion C-level slot and method: ``nb_nonzero`` is "
15711591
"now ``nb_bool``."
1572-
msgstr ""
1592+
msgstr "重命名布尔转换的 C 层级槽位和方法: ``nb_nonzero`` 现在改为 ``nb_bool``。"
15731593

15741594
#: ../../whatsnew/3.0.rst:880
15751595
msgid ""

0 commit comments

Comments
 (0)