Files
cpython/Doc/c-api
Serhiy Storchaka ca32ebf793 gh-80384: Check that callback is callable at weak reference creation (GH-151145)
* Python functions weakref.ref() and weakref.proxy() now raise TypeError
  if the callback argument is not callable or None.
* C functions PyWeakref_NewRef() and PyWeakref_NewProxy() now raise TypeError
  if the callback argument is not callable, None, or NULL.

Co-authored-by: Maxwell Bernstein <emacs@fb.com>
2026-06-10 13:34:55 +03:00
..
2026-03-10 14:31:15 +02:00
2026-05-07 16:26:31 +03:00
2026-05-07 16:26:31 +03:00