How Python's context managers help you clean up after yourself

Published: 27 July 2020
on channel: TECHtalk
562
18

Sometimes in Python programs you need to acquire external resources, like file handles, and then free them again. Python's context manager construction lets you automatically free things up when you're done with them, and in a way that lets you see at a glance the scope of what's used and when.

Follow TECH(talk) for the latest tech news and discussion!
-----------------------------­---
SUBSCRIBE: http://www.youtube.com/subscription_c...

FACEBOOK:   / idgtechtalk  

TWITTER:   / idgtechtalk  

IDG ENTERPRISE WEBSITES

Computerworld: https://www.computerworld.com/video/s...

CIO: https://www.cio.com/video/series/8534...

CSO: https://www.csoonline.com/video/serie...

InfoWorld: https://www.infoworld.com/video/serie...

Network World: https://www.networkworld.com/video/se...


Watch video How Python's context managers help you clean up after yourself online, duration hours minute second in high quality that is uploaded to the channel TECHtalk 27 July 2020. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 562 times and liked it 18 visitors.