File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
- {"translation" : " 91.94%" , "updated_at" : " 2024-04-18T03:09 :43Z" }
1
+ {"translation" : " 91.94%" , "updated_at" : " 2024-04-19T02:16 :43Z" }
Original file line number Diff line number Diff line change @@ -1718,6 +1718,12 @@ 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 ""
You can’t perform that action at this time.
0 commit comments