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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user