Visitar URL original
bpo-47220: Document the optional callback parameter of weakref.WeakMethod by geryogam · Pull Request #25491 · python/cpython · GitHub
Skip to content
Merged
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
Document the callback parameter to WeakMethod
  • Loading branch information
geryogam authored Apr 4, 2022
commit 819a5835ab6ac257dd0c36eeea66aedcb1900e03
2 changes: 2 additions & 0 deletions Doc/library/weakref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ objects.
>>> r()
>>>

*callback* is the same as the parameter of the same name to the :func:`ref` function.

.. versionadded:: 3.4

.. class:: finalize(obj, func, /, *args, **kwargs)
Expand Down