claudevdm commented on code in PR #35904:
URL: https://github.com/apache/beam/pull/35904#discussion_r2415005776


##########
sdks/python/apache_beam/internal/cloudpickle/cloudpickle.py:
##########
@@ -567,6 +577,11 @@ def _make_function(code, globals, name, argdefs, closure):
   return types.FunctionType(code, globals, name, argdefs, closure)
 
 
+def _make_function_from_identifier(code_path, globals, name, argdefs, closure):

Review Comment:
   Can you add another argument here which passes the function
   ```
   def _make_function_from_identifier(get_code_from_identifier, code_path, 
globals, name, argdefs, closure):
   ```
   
   Then in _stable_identifier_function_reduce you do
   ```
   return (
           functools.partial(_make_function_from_identifier, 
self.config.get_code_object_identifier), 
           newargs, 
           state,
           None,
           None,
           _function_setstate)
   ```
   
   



-- 
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