File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 ""
17181718"your code to use :func:`~inspect.signature` directly if those features are "
17191719"desired. (Contributed by Yury Selivanov in :issue:`17481`.)"
17201720msgstr ""
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` 中贡献。)"
17211727
17221728#: ../../whatsnew/3.4.rst:1053
17231729msgid ""
You can’t perform that action at this time.
0 commit comments