◐ Shell
clean mode source ↗

Message 370638 - Python tracker

> bpo-39573: Convert Py_TYPE() to a static inline function (GH-20290)

This change broke pycurl:
https://github.com/pycurl/pycurl/pull/636

Extract of its current code:
"""
    /* Initialize the type of the new type objects here; doing it here
     * is required for portability to Windows without requiring C++. */
    p_Curl_Type = &Curl_Type;
    p_CurlMulti_Type = &CurlMulti_Type;
    p_CurlShare_Type = &CurlShare_Type;
    Py_TYPE(&Curl_Type) = &PyType_Type; 
    Py_TYPE(&CurlMulti_Type) = &PyType_Type; 
    Py_TYPE(&CurlShare_Type) = &PyType_Type; 
"""