Skip to content

Commit

Permalink
pythonGH-111963: Clarify sys.monitoring.free_tool_id's limitations (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored and Glyphack committed Jan 27, 2024
1 parent fa291b6 commit e3fb7d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Doc/library/sys.monitoring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ Registering and using tools

Should be called once a tool no longer requires *tool_id*.

.. note::

:func:`free_tool_id` will not disable global or local events associated
with *tool_id*, nor will it unregister any callback functions. This
function is only intended to be used to notify the VM that the
particular *tool_id* is no longer in use.

.. function:: get_tool(tool_id: int, /) -> str | None

Returns the name of the tool if *tool_id* is in use,
Expand Down

0 comments on commit e3fb7d3

Please sign in to comment.