Monday 9 February 2015

Experienced Python Interview Questions and Answers

16) Explain about repr function?
This function is used to obtain a string representation of an object. This function helps you in obtaining a printable representation of the object. This function also makes it possible to obtain specific return from the object. This can be made possible by specifying the repr method in the class.

17) Explain about pickling and unpickling?
Python has a standard module known as Pickle which enables you to store a specific object at some destination and then you can call the object back at later stage. While you are retrieving the object this process is known as unpickling. By specifying the dump function you can store the data into a specific file and this is known as pickling.
More Questions & Answers :-
Page1  Page2  Page3  Page4

No comments:

Post a Comment