This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PyErr_GivenExceptionMatches documentation out of date
Type: Stage:
Components: Documentation Versions: Python 3.0, Python 2.6, Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: benjamin.peterson, garcia, georg.brandl
Priority: normal Keywords:

Created on 2008-12-28 20:13 by garcia, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg78429 - (view) Author: garcia (garcia) Date: 2008-12-28 20:13
The documentation for PyErr_GivenExceptionMatches states that "If given is 
NULL, a memory access violation will occur."  However, looking at the 
code, this is not the case:  the function returns 0 (read: false).
It appears, rather, that this function always succeeds.
msg78432 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-12-28 21:16
Thanks for the report! Fixed in r67995.
History
Date User Action Args
2022-04-11 14:56:43adminsetgithub: 49013
2008-12-28 21:16:26benjamin.petersonsetstatus: open -> closed
resolution: fixed
messages: + msg78432
nosy: + benjamin.peterson
2008-12-28 20:13:28garciacreate