QuestionQ53

VerifiedFile Processing and Communicating with a Program’s Environment

Which of these types cannot be pickled?

Explanation

Python pickle supports the listed built-in constants, numeric types, strings, bytes, and bytearrays. Function and class definitions are not serialized by value; eligible top-level functions and classes are represented by their fully qualified names, so their defining module must be importable and contain the named object when unpickled.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!