Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve docs
  • Loading branch information
sobolevn committed Mar 9, 2024
commit b434fbc759569d8f24f330eef2d6e0bf7ed45dd0
6 changes: 6 additions & 0 deletions Doc/library/inspect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,12 @@ function.
Return a :class:`Signature` (or its subclass) object for a given
:ref:`frame object <frame-objects>`.

Notice that it is impossible to get signatures
with annotations from frames.
Because annotations are stored in functions.
Also note that default parameter values might
be modified inside the frame.

.. versionadded:: 3.13
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. versionadded:: 3.13
.. versionadded:: next



Expand Down
6 changes: 6 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ and only logged in :ref:`Python Development Mode <devmode>` or on :ref:`Python
built on debug mode <debug-build>`.
(Contributed by Victor Stinner in :gh:`62948`.)

inspect
-------

* Add :meth:`inspect.Signature.from_frame` to get signatures from frame objects
and to replace the old :func:`inspect.getargvalues` API.

ipaddress
---------

Expand Down