1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-31 04:59:50 +02:00

Add resources to context manager (#6591)

* Update context-manager@KAXF2kUAOvtBZhY8G9rkI.md

A simple context manager description.

* Update src/data/roadmaps/python/content/context-manager@KAXF2kUAOvtBZhY8G9rkI.md

---------

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
This commit is contained in:
Egemen Aktas
2024-08-18 02:52:25 +02:00
committed by GitHub
parent a8801820cf
commit 2ff54205ef

View File

@@ -1 +1,8 @@
# Context Manager
# Context Manager
Context managers are a contruct in Python that allows you to set up context for a block of code, and then automatically clean up or relase resources when the block is exited. It is most commonly used with the `with` statement.
Visit the following resources to learn more:
- [@article@Context managers in Python](https://www.freecodecamp.org/news/context-managers-in-python/)
- [@article@Context managers](https://book.pythontips.com/en/latest/context_managers.html)