1.

If __getstate__() returns _______________ the __setstate__() module will not be called on pickling.(a) True value(b) False value(c) ValueError(d) OverflowErrorThis question was addressed to me by my college professor while I was bunking the class.Query is from Pickle Module in portion Mapping Functions and Modules of Python

Answer»

The correct option is (b) False value

Easiest EXPLANATION - If getstate__() returns a false value, the __setstate__()module will not be CALLED on pickling.



Discussion

No Comment Found

Related InterviewSolutions