[New-bugs-announce] [issue36203] PyWeakref_NewRef docs are misleading

Maxwell Bernstein report at bugs.python.org
Tue Mar 5 20:03:50 EST 2019


New submission from Maxwell Bernstein <tekk.nolagi at 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 <report at bugs.python.org>
<https://bugs.python.org/issue36203>
_______________________________________


More information about the New-bugs-announce mailing list