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>pull/6659/head
parent
a8801820cf
commit
2ff54205ef
1 changed files with 8 additions and 1 deletions
@ -1 +1,8 @@ |
||||
# 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) |
||||
|
Loading…
Reference in new issue