• Nick Coghlan's avatar
    bpo-32176: Set CO_NOFREE in the code object constructor (GH-4675) · 078f1814
    Nick Coghlan yazdı
    Previously, CO_NOFREE was set in the compiler, which meant
    it could end up being set incorrectly when code objects
    were created directly. Setting it in the constructor based
    on freevars and cellvars ensures it is always accurate,
    regardless of how the code object is defined.
    078f1814
codeobject.c 26.9 KB