• Boxiang Sun's avatar
    Add argument check for PyDict_Next · 2190118b
    Boxiang Sun authored
    In PyDict_Next, the 3rd argument `pkey` and 4th argument pvalue could be
    NULL. lxml will try to call it by PyDict_Next(kwdict, &pos, &key, 0).
    And a check like CPython did.
    2190118b
dict.cpp 39.2 KB