Pickling and unpickling
Explain pickling and unpickling.- Pickle is a standard module which serializes & de-serializes a python object structure.
- Pickle module accepts any python object converts it into a string representation & dumps it into a file(by using dump() function) which can be used later, process is called pickling. Whereas unpickling is process of retrieving original python object from the stored string representation for use.
|
How is memory managed in python?How is memory managed in python? - Memory management in Python involves a private heap containing all Python
objects and data structures. Interpreter takes care of Python heap and that the
programmer has no access to it.......
How do you make a higher order function in Python?How do you make a higher order function in Python? - A higher-order function accepts one or more functions as input and returns a new
function. Sometimes it is required to use function as data........