Want more business storytelling from us? Check our weekly deepdive show, The Best Idea Yet: The untold origin story of the products you're obsessed with. Listen for free to The Best Idea Yet: https://wondery.com/links/the-best-idea-yet/
About Us: The daily pop-biz news show making today’s top stories your business. Formerly known as Robinhood Snacks, The Best One Yet is hosted by Jack Crivici-Kramer & Nick Martell.
Russian President Vladimir Putin has often proclaimed that the country must lead the world in artificial intelligence, yet the country is currently stuck on the sidelines as other nations pull ahead. Wall Street Journal foreign correspondent Georgi Kantchev explains why. Plus, the arrival of AI agents is transforming work already—debugging code, designing products, and delivering ROI. Steven Rosenbush, chief of the enterprise technology bureau, details how companies like Walmart and BNY are already seeing results. Julie Chang 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.
After careful deliberation, the Python Steering Council is pleased to accept PEP 798 – Unpacking in Comprehensions.
Examples
[*it for it in its] # list with the concatenation of iterables in 'its'
{*it for it in its} # set with the union of iterables in 'its'
{**d for d in dicts} # dict with the combination of dicts in 'dicts'
(*it for it in its) # generator of the concatenation of iterables in 'its'
Inferred by default for string data (instead of object dtype)
The str dtype can only hold strings (or missing values), in contrast to object dtype. (setitem with non string fails)
The missing value sentinel is always NaN (np.nan) and follows the same missing value semantics as the other default dtypes.
Copy-on-Write
The result of any indexing operation (subsetting a DataFrame or Series in any way, i.e. including accessing a DataFrame column as a Series) or any method returning a new DataFrame or Series, always behaves as if it were a copy in terms of user API.
As a consequence, if you want to modify an object (DataFrame or Series), the only way to do this is to directly modify that object itself.
pd.col syntax can now be used in DataFrame.assign() and DataFrame.loc()
You can now do this: df.assign(c = pd.col('a') + pd.col('b'))
Like codespell, typos checks for known misspellings instead of only allowing words from a dictionary. But typos has some extra features I really appreciate, like finding spelling mistakes inside snake_case or camelCase words. For example, if you have the line:
*connecton_string="sqlite:///my.db"*
codespell won't find the misspelling, but typos will. It gave me the output:
For more on the differences between codespell and typos, here's a comparison table I found in the typos repo: https://github.com/crate-ci/typos/blob/master/docs/comparison.md
By the way, though it's not mentioned in the installation instructions, typos is published on PyPI and can be installed with uv tool install typos, for example. That said, I don't bother installing it, I just use the VS Code extension and run it as a pre-commit hook. (By the way, I'm using prek instead of pre-commit now; thanks for the tip on episode #448!) It looks like typos also publishes a GitHub action, though I haven't used it.
Ned’s taught us before to “Mock where the object is used, not where it’s defined.”
To be more explicit, but probably more confusing to mock-newbies, “don’t mock things that get imported, mock the object in the file it got imported to.”
See? That’s probably worse. Anyway, read Ned’s post.
If my project myproduct has user.py that uses the system builtin open() and we want to patch it:
DONT DO THIS: @patch("builtins.open")
This patches open() for the whole system
DO THIS: @patch("myproduct.user.open")
This patches open() for just the user.py file, which is what we want
Apparently this issue is common and is mucking up using coverage.py
This week, Senate Democrats will hold a vote on extending expiring Affordable Care Act tax credits to try to prevent health insurance premiums from skyrocketing for millions of Americans. That vote is basically guaranteed to fail.
Where did these credits come from, and what’s likely to happen when they (almost) inevitably lapse?
Guest: Julie Rovner, chief Washington correspondent for KFF Health News and host of the podcast “What the Health?”
Want more What Next? Subscribe to Slate Plus to access ad-free listening to the whole What Next family and across all your favorite Slate podcasts. Subscribe today on Apple Podcasts by clicking “Try Free” at the top of our show page. Sign up now at slate.com/whatnextplusto get access wherever you listen.
Podcast production by Elena Schwartz, Paige Osburn, Anna Phillips, Madeline Ducharme, and Rob Gunther.
Federal Reserve is meeting to make its interest rate decision after the government shutdown delayed key economic data. Today on the show, we talk to the former Vice Chair of the Fed, Lael Brainard, about what she would do with interest rates in this critical yet foggy economic moment.
More than 100 million people in the U.S. have some allergy each year. That’s about every 1 in 3 adults. For many, the fix is a bandaid: over-the-counter allergy medications. But there’s another treatment that works to lessen these reactions rather than just manage people’s symptoms, allergy shots. The treatment has been around for over a century and is still popular today. Patients have to take the shots for a few years, and it’s the closest thing science has to a cure. Host Regina G. Barber speaks with Dr. Gina Dapul-Hidalgo about how this immunotherapy works and how certain guidelines to keep your child from developing common food allergies have changed. Interested in more science behind allergies? Check out our other episodes:
Deborah Willis is one of the foremost authorities on Black photography. The MacArthur “genius award” winner has dedicated her career to cataloging and showcasing Black photographers and photos of Black people. And her seminal work – Reflections in Black: A History of Black Photographers 1840 to the Present – has been reissued after 25 years. In today’s episode, Michel Martin visits Willis at New York University to talk about the expanded edition of the book and the gallery show inspired by it.
To listen to Book of the Day sponsor-free and support NPR's book coverage, sign up for Book of the Day+ at plus.npr.org/bookoftheday
Andrew Hudson of E1 returns to talk about a grab bag of recent news: Marie Glusenkamp Perez’s war on pinnipeds, Alex Karp’s tweaked-out media hits, and another vaccine on the RFK’s chopping block. We then turn to Milo Yiannopoulos, who just recently made the equally outrageous claims that Charlie Kirk is still alive and Benny Johnson is actually gay. Finally, Tarantino’s unbearable public persona, the Ellison-Zaslav war over Warner Bros.’ future, and a lot of praise for a recent genre movie.
Listen to Episode 1 here: https://soundcloud.com/episode-one-868768631
And subscribe here: https://www.patreon.com/e1podcast/posts
The US chipmaker, Nvidia has been authorised to sell advanced AI chips to China - in a major reversal of Washington's national security policy. The Democratic Senator, Elizabeth Warren, said the decision risked turbocharging China's bid for technological and military dominance. Donald Trump has also announced a $12bn rescue package for US farmers hit by his tariffs. Also: scientists say a revolutionary treatment for blood cancers is delivering impressive results; Sudan's paramilitary Rapid Support Forces say they've taken control of the country’s largest oil field; a takeover battle is underway for Warner Brothers - as Paramount outbids Netflix; the wreck of an ancient ornate pleasure boat is discovered off the coast of Egypt; and the headset that made it possible for a man with almost no sight to watch a live football match.
The Global News Podcast brings you the breaking news you need to hear, as it happens. Listen for the latest headlines and current affairs from around the world. Politics, economics, climate, business, technology, health – we cover it all with expert analysis and insight.