From 2ff54205eff1e56b6fc984b0a5f8742f384397f7 Mon Sep 17 00:00:00 2001 From: Egemen Aktas <86255973+egmnaktas@users.noreply.github.com> Date: Sun, 18 Aug 2024 02:52:25 +0200 Subject: [PATCH] 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 --- .../content/context-manager@KAXF2kUAOvtBZhY8G9rkI.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/python/content/context-manager@KAXF2kUAOvtBZhY8G9rkI.md b/src/data/roadmaps/python/content/context-manager@KAXF2kUAOvtBZhY8G9rkI.md index c07c15687..9a94e375e 100644 --- a/src/data/roadmaps/python/content/context-manager@KAXF2kUAOvtBZhY8G9rkI.md +++ b/src/data/roadmaps/python/content/context-manager@KAXF2kUAOvtBZhY8G9rkI.md @@ -1 +1,8 @@ -# Context Manager \ No newline at end of file +# 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)