Back to Browse

Context Managers in Python

403 views
Oct 8, 2022
10:47

Hello, everyone! In this video, I explain context managers, which allow you to efficiently manage resources, avoinding information vulnerability, resource leaks and crashes in your code, as well as making your computer faster. This is a little bit of an advanced concept, so you should know how to work with files, generators and classes before trying to learn it, but if you're a more advanced programmer, it can come in handy. Thank you for watching and have fun coding! Instagram: https://www.instagram.com/robot_maze/ Timestamps: 00:00 - Intro 00:46 - What context managers do 01:33 - Why are they useful? 03:22 - Creating context managers with classes 05:57 - Handling exceptions with the __exit__ method 08:54 - Creating context managers with generators *Hashtags* #robotmaze #contextmanagers #programming #python #pythonprogramming #pythontutorial

Download

1 formats

Video Formats

360pmp413.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Context Managers in Python | NatokHD