-
-
Notifications
You must be signed in to change notification settings - Fork 188
Open
Description
Continuing the discussion from #462 (comment)
Even cloudpickle's behavior is a little bit finicky and has some unintuitive behavior. I think that there are design decisions that need to be made with regards to how we handle global dictionaries and functions.
import cloudpickle
def f():
global x
x = 5
def g():
global x
x = 0
f()
assert x == 5
G, GG = cloudpickle.loads(cloudpickle.dumps((g, g.__globals__)))
G.__globals__ != GG # Seems oddMetadata
Metadata
Assignees
Labels
No labels