Context Managers in Python

Publicado el: 08 octubre 2022
en el canal de: Robot Maze
352
12

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:   / 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


En esta página del sitio puede ver el video en línea Context Managers in Python de Duración hora minuto segunda en buena calidad , que subió el usuario Robot Maze 08 octubre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 352 veces y le gustó 12 a los espectadores. Disfruta viendo!