PEP 343: The 'with' Statement - Context Management Done Right
TL;DR
PEP 343 introduced the ‘with’ statement for automatic resource management, ensuring cleanup code runs even when exceptions occur, making file handling and resource management safer and cleaner.