lakshitbahl commented on PR #39210:
URL: https://github.com/apache/beam/pull/39210#issuecomment-4876758520

   Fixes closure inference on Python ≤3.12 and narrows testLocalClosure's skip 
from unconditional to 3.13+ only. On 3.13+, MAKE_FUNCTION no longer takes a 
closure flag (closures attach via SET_FUNCTION_ATTRIBUTE) and the emulation of 
that path has pre-existing bugs (FunctionType called without a closure for 
freevar-carrying code; set_function_attribute uses 
func.code/func.globals/func.name instead of __code__/__globals__/__name__), so 
emulation-dependent tests are gated to <3.13. Real-closure inference (validated 
by the un-gated tests) works on all versions including 3.14.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to