Global Interpreter Lock
-
This is a mutex used for limiting access to python objects and helps thread synchronization by avoiding deadlocks.
GIL achieves
multitasking (and not parallel computing)
Memory Management
-
Memory management in Python is done by Python Memory Manager. The memory allocated in private heap space.
All objects are stored in private heap & inaccessible to programmer.
Python has an in-built garbage collection to recycle the unused memory for the private heap space.
PEP 8 (Python Enhancement Proposal)
-
PEP is an official document providing information about new feature coming in python.
Pickling = Serialization / Unpickling
-
Serializing/Pickling
Transforming object into format that can be stored(json) or sent as byte stream
python pickle module is used to do serialization. pickle.dump()
Unpickling? Deserialize the byte stream to recreate the objects stored in the file and loads the object to memory. pickle.load()