Skip to content

Parenthesize Py<type>_Check() in ifs

Miro Hrončok requested to merge hroncok/libxml2:390a4 into master

In C, if expressions should be parenthesized. PyLong_Check, PyUnicode_Check etc. happened to expand to a parenthesized expression before, but that's not API to rely on.

Since Python 3.9.0a4 it needs to be parenthesized explicitly.

Fixes #149 (closed)

Edited by Miro Hrončok

Merge request reports