New submission from Maxwell Bernstein <tekk.nol...@gmail.com>:

The docs for `PyWeakref_NewRef` state "if callback is not callable, None, or 
NULL, this will return NULL and raise TypeError". It does not appear as though 
there is a callable check for the callback.

----------
messages: 337255
nosy: Maxwell Bernstein
priority: normal
severity: normal
status: open
title: PyWeakref_NewRef docs are misleading
versions: Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36203>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to