We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3f27f commit a2237d3Copy full SHA for a2237d3
cloudpickle/cloudpickle_fast.py
@@ -155,8 +155,8 @@ def _function_getstate(func):
155
}
156
157
f_globals_ref = _extract_code_globals(func.__code__)
158
- f_globals = {k: func.__globals__[k] for k in f_globals_ref if k in
159
- func.__globals__}
+ f_globals = {k: func.__globals__[k] for k in sorted(f_globals_ref)
+ if k in func.__globals__}
160
161
closure_values = (
162
list(map(_get_cell_contents, func.__closure__))
0 commit comments