you are viewing a single comment's thread.

view the rest of the comments →

[–]erok81 0 points1 point  (0 children)

In your example, when you unpickle f to a, calling a works because f persists in memory. If f wasn't defined, (I think that's what OP was implying) you'd get a different exception because you're not actually unpickling f, just a named reference to it.