File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 92.51 %" , "updated_at" : " 2024-04-18T03:22:49Z " }
1
+ {"translation" : " 92.52 %" , "updated_at" : " 2024-04-19T02:31:10Z " }
Original file line number Diff line number Diff line change @@ -1718,13 +1718,21 @@ msgid ""
1718
1718
"your code to use :func:`~inspect.signature` directly if those features are "
1719
1719
"desired. (Contributed by Yury Selivanov in :issue:`17481`.)"
1720
1720
msgstr ""
1721
+ "现在 :func:`~inspect.getfullargspec` 和 :func:`~inspect.getargspec` 将使用 "
1722
+ ":func:`~inspect.signature` API。 这允许它们支持更多种类的可调用对象,包括具有 ``__signature__`` "
1723
+ "属性的、具有通过 argument clinic 提供元数据的、:func:`functools.partial` 对象等等。 请注意,不同于 "
1724
+ ":func:`~inspect.signature`,这些函数仍然会忽略 ``__wrapped__`` "
1725
+ "属性,并会报告绑定方法已绑定的第一个参数,所以如果想要这些特性的话你仍然需要更新你的代码以直接使用 "
1726
+ ":func:`~inspect.signature`。 (由 Yury Selivanov 在 :issue:`17481` 中贡献。)"
1721
1727
1722
1728
#: ../../whatsnew/3.4.rst:1053
1723
1729
msgid ""
1724
1730
":func:`~inspect.signature` now supports duck types of CPython functions, "
1725
1731
"which adds support for functions compiled with Cython. (Contributed by "
1726
1732
"Stefan Behnel and Yury Selivanov in :issue:`17159`.)"
1727
1733
msgstr ""
1734
+ "现在 :func:`~inspect.signature` 支持 CPython 函数的鸭子类型,它增加了对使用 Cython 编译的函数的支持。 (由"
1735
+ " Stefan Behnel 和 Yury Selivanov 在 :issue:`17159` 中贡献。)"
1728
1736
1729
1737
#: ../../whatsnew/3.4.rst:1059
1730
1738
msgid "ipaddress"
You can’t perform that action at this time.
0 commit comments