Parsing files with Python's generator expressions and walruses

Published: 10 November 2020
on channel: Python and Pandas with Reuven Lerner
1,373
53

Python is great at parsing files — but what if the file is really huge? That's where generators come in. How can you turn existing code into a generator function? And can you go even further, turning it into a generator comprehension? The answer: Yes, with a bit of help from the new "walrus" operator. Join me in this exploration of code I got from Doug, a long-time subscriber to my "Better developers" list (https://BetterDevelopersWeekly.com/), where we explore file parsing, generator expressions, and walruses!


Watch video Parsing files with Python's generator expressions and walruses online, duration hours minute second in high quality that is uploaded to the channel Python and Pandas with Reuven Lerner 10 November 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 1,373 times and liked it 53 visitors.