You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the python backend and passing a function reference, it gets wrapped in an extra closure, with the outer function environment's arguments appended. This prevents passing a function to constructors like multiprocessing.Process, which require the function to be pickleable, failing with AttributeError: Can't pickle local object.
Description
When using the python backend and passing a function reference, it gets wrapped in an extra closure, with the outer function environment's arguments appended. This prevents passing a function to constructors like
multiprocessing.Process
, which require the function to be pickleable, failing withAttributeError: Can't pickle local object
.Repro code
[Please provide the F# code to reproduce the problem or a link to the REPL.
Ideally, it should be possible to easily turn this code into a unit test.](https://fable.io/repl/#?code=DYUwLgBA5hAUCUEC8d4Cg2kgJwK4DsIAzZYhDLCXABwBMBDMECAfXuxmTQh70KiA&html=Q&css=Q)
Expected and actual results
When passing a function as an argument
the function should be called directly as in the JS output:
Instead, a local function
_arrow1
is introduced with an extra_arg: Any=_arg
param:Related information
The text was updated successfully, but these errors were encountered: