mirror of
https://github.com/python/cpython.git
synced 2026-06-22 19:12:50 -04:00
ca32ebf793
* 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>
Source files for various builtin objects