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
Egemen Aktas 3 months ago committed by GitHub
parent a8801820cf
commit 2ff54205ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 9
      src/data/roadmaps/python/content/context-manager@KAXF2kUAOvtBZhY8G9rkI.md

@ -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)

Loading…
Cancel
Save