AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Intro
This chapter covers recent updates for Python fans, including promotional news and the new Blue Sky social media presence. The discussion also highlights a controversy regarding loop targets in Python, illustrated through a practical example with dictionary parameters.
About the show
Sponsored by us! Support our work through:
Connect with the hosts
Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Monday at 10am PT. Older video versions available there too.
Finally, if you want an artisanal, hand-crafted digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.
Brian #1: Loop targets
Here’s the snippet:
params = {
"query": QUERY,
"page_size": 100,
}
*# Get page=0, page=1, page=2, ...*
**for** params["page"] in itertools.count():
data = requests.get(SEARCH_URL, params).json()
**if** not data["results"]:
**break**
...
Ned is utilizing the assignment in the for loop to use the value of count() and store it into the params["page"].
Michael #2: asyncstdlib
Brian #3: Bagels: TUI Expense Tracker
“Bagels expense tracker is a TUI application where you can track and analyse your money flow, with convenience oriented features and a complete interface.
Why an expense tracker in the terminal? I found it easier to build a habit and keep an accurate track of my expenses if I do it at the end of the day, instead of on the go. So why not in the terminal where it's fast, and I can keep all my data locally?”
Who hasn’t wanted to write their own expense tracker?
Michael #4: rloop: An AsyncIO event loop implemented in Rust
Extras
Brian:
Michael:
Joke: CTRL + X onion
Listen to all your favourite podcasts with AI-powered features
Listen to the best highlights from the podcasts you love and dive into the full episode
Hear something you like? Tap your headphones to save it with AI-generated key takeaways
Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more
Listen to all your favourite podcasts with AI-powered features
Listen to the best highlights from the podcasts you love and dive into the full episode