• Boxiang Sun's avatar
    Add support for PyFrame_SetLineNumber & PyCode_HasFreeVars · 9d2c4626
    Boxiang Sun authored
    In Pyston C API, there have new added PyFrame_SetLineNumber and
    PyCode_HasFreeVars two APIs. Add these two inlined C functions for
    CPython.
    
    PyFrame_SetLineNumber is for get frame line number.
    PyCode_HasFreeVars is for check whether PyCodeObject has freevars.
    
    [ @kirr: reworked patch for better structure ]
    
    /reviewed-on !1
    9d2c4626
pycapicompat.h 2.55 KB