Python Tutorial: Context Managers - Efficiently Managing Resources

Published: 20 December 2017
on channel: Corey Schafer
212,739
6.5k

In this Python Programming Tutorial, we will be learning how to use context managers to properly manage resources. Context Managers are great for when we need to setup or teardown some resources during use. So these can be used for: open and closing files, opening and closing database connections, acquiring and releasing locks, and much much more. Let's get started...

The code from this video can be found at:
https://github.com/CoreyMSchafer/code...

Python Object-Oriented Series: https://goo.gl/ZSqx6y


✅ Support My Channel Through Patreon:
  / coreyms  

✅ Become a Channel Member:
   / @coreyms  

✅ One-Time Contribution Through PayPal:
https://goo.gl/649HFY

✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey's Public Amazon Wishlist
http://a.co/inIyro1

✅ Equipment I Use and Books I Recommend:
https://www.amazon.com/shop/coreyschafer

▶️ You Can Find Me On:
My Website - http://coreyms.com/
My Second Channel -    / coreymschafer  
Facebook -   / coreymschafer  
Twitter -   / coreymschafer  
Instagram -   / coreymschafer  

#Python


On this page of the site you can watch the video online Python Tutorial: Context Managers - Efficiently Managing Resources with a duration of hours minute second in good quality, which was uploaded by the user Corey Schafer 20 December 2017, share the link with friends and acquaintances, this video has already been watched 212,739 times on youtube and it was liked by 6.5 thousand viewers. Enjoy your viewing!